anchor.diff:      '';
     };
   
  -  darwin = stdenv.mkDerivation rec {
  -    appname = "Obsidian";
  -    inherit pname version src;
  -    meta.platforms = [ "x86_64-darwin" "aarch64-darwin" ];
  +  darwin = stdenv.mkDerivation {
  +    inherit pname version src appname;
  +    meta = meta // { platforms = [ "x86_64-darwin" "aarch64-darwin" ]; };
       sourceRoot = "${appname}.app";
       nativeBuildInputs = [ makeWrapper undmg unzip ];
       installPhase = ''
  
positive.code:   inherit (stdenv.hostPlatform) system;
    pname = "obsidian";
    version = "0.14.2";
    meta = with lib; {
      description = "A powerful knowledge base that works on top of a local folder of plain text Markdown files";
      homepage = "https://obsidian.md";
  
negative.code:     sha256 = if stdenv.isDarwin then "128kgqkf54ljkglwqa6i0qnfqhhmsv7hwbaqnml95n5dzyxrbm4s" else "00gip6pvkbywywlx71j87sxyh8yhkd36i1ydncbpnhsplr6smsq3";
    };
  
    icon = fetchurl {
      url = "https://forum.obsidian.md/uploads/default/original/1X/bf119bd48f748f4fd2d65f2d1bb05d3c806883b5.png";
      sha256 = "18ylnbvxr6k4x44c4i1d55wxy2dq4fdppp43a4wl6h6zar0sc9s2";
    };
  
    desktopItem = makeDesktopItem {
      name = "obsidian";
      desktopName = "Obsidian";
      comment = "Knowledge base";
      icon = "obsidian";
      exec = "obsidian %u";
      categories = [ "Office" ];
      mimeTypes = [ "x-scheme-handler/obsidian" ];
    };
  
    linux = stdenv.mkDerivation {
      inherit pname version src desktopItem icon;
      meta = meta // { platforms = [ "x86_64-linux" "aarch64-linux" ]; };
      nativeBuildInputs = [ makeWrapper graphicsmagick ];
      installPhase = ''
        runHook preInstall
  