anchor.diff: -{ pkgs, daedalus, nix-bundle, coreutils, utillinux, procps, lib, gnutar, xz, pv }:
  +{ pkgs, daedalus, nix-bundle, coreutils, utillinux, procps, lib, gnutar, xz, pv, gnused }:
   
   let
     bundle = import (pkgs.fetchFromGitHub {
  
positive.code:       mv "''${DAEDALUS_DIR}/installation" "''${DAEDALUS_DIR}/garbage"
      fi
      mv "''${DAEDALUS_DIR}/unpack" "''${DAEDALUS_DIR}/installation"
  
      if [ -d "''${DAEDALUS_DIR}/garbage" ]; then
        echo cleaning up old version...
  
negative.code:       }
      ];
    };
    desktopItem = pkgs.makeDesktopItem {
      name = "Daedalus";
      exec = "INSERT_PATH_HERE";
      desktopName = "Daedalus";
      genericName = "Crypto-Currency Wallet";
      categories = "Application;Network;";
    };
    installer = pkgs.writeScriptBin "daedalus-installer" ''
      #!${pkgs.stdenv.shell}
  
      set -e
      export PATH=${lib.makeBinPath [ coreutils gnutar xz pv gnused ]}
  
      test -z "$XDG_DATA_HOME" && { XDG_DATA_HOME="''${HOME}/.local/share"; }
      export DAEDALUS_DIR="''${XDG_DATA_HOME}/Daedalus"
  