anchor.diff:        wrapGAppsHook
       ];
   
  -    buildInputs = atomEnv.packages ++ [ gtk3 ];
  +    buildInputs = atomEnv.packages ++ [ gtk3 libxshmfence ];
   
       installPhase = ''
         runHook preInstall
  
positive.code: { lib, stdenv, nixosTests, fetchurl, autoPatchelfHook, atomEnv, makeWrapper, makeDesktopItem, gtk3, wrapGAppsHook }:
  
  let
    description = "Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases";
  
negative.code:     maintainers = with maintainers; [ fliegendewurst ];
    };
  
    version = "0.47.2";
  
    desktopSource = {
      url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz";
      sha256 = "04fyi0gbih6iw61b6d8lprf9qhxb6zb1pgckmi016wgv8x5ck02p";
    };
  
    serverSource = {
      url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz";
      sha256 = "1f8csjgqq4yw1qcnlrfy5ysarazmvj2fnmnxj4sr1xjbfa78y2rr";
    };
  
  in {
  