anchor.diff:      sha256 = "18085a2509447fef8896daeee96a12f48f8e60a4d5ec4cfab44d8d59b9d89a72";
     };
     electronPathHash = builtins.hashString "sha256" electronPath;
  -  checksums = fetchurl {
  -    url = "https://github.com/electron/electron/releases/download/v${windowsElectronVersion}/SHASUMS256.txt";
  -    sha256 = "36252994ffddaa6ca71f664df7b90956a324cd22ce2e2dc94754ff3961e23a20";
  -  };
     electron-cache = runCommand "electron-cache" {} ''
  -    mkdir $out
  -    # we simulate the cache that is used when calling yarn package and the cache is located $HOME/.cache/electron
  -    mkdir $out/httpsgithub.comelectronelectronreleasesdownloadv${windowsElectronVersion}SHASUMS256.txt
  +    # newer style
  +    mkdir -p $out/${electronPathHash}/
  +    ln -sv ${windowsElectron} $out/${electronPathHash}/electron-v${windowsElectronVersion}-win32-x64.zip
       mkdir $out/httpsgithub.comelectronelectronreleasesdownloadv${windowsElectronVersion}electron-v${windowsElectronVersion}-win32-x64.zip
       ln -s ${windowsElectron} $out/httpsgithub.comelectronelectronreleasesdownloadv${windowsElectronVersion}electron-v${windowsElectronVersion}-win32-x64.zip/electron-v${windowsElectronVersion}-win32-x64.zip
  -    ln -s ${checksums} $out/httpsgithub.comelectronelectronreleasesdownloadv${windowsElectronVersion}SHASUMS256.txt/SHASUMS256.txt
     '';
     electron-gyp = fetchurl {
       url = "https://www.electronjs.org/headers/v${windowsElectronVersion}/node-v${windowsElectronVersion}-headers.tar.gz";
       sha256 = "f8567511857ab62659505ba5158b6ad69afceb512105a3251d180fe47f44366c";
  -  };
  -  node-gyp = fetchurl {
  -    sha256 = "9abfc6dcd32bce3b9a978b8c23b8bb48a562c94919feba489f9bb9d4bbeeae66";
     };
     filter = name: type: let
       baseName = baseNameOf (toString name);
  
positive.code:     echo ______ gyp wrapper
      ${nodePackages.node-gyp}/bin/node-gyp "$@" --tarball ${electron-gyp} --nodedir $HOME/.node-gyp/${nodejs.version}
    '';
    hackNode16 = writeShellScriptBin "node-gyp" ''
      echo ______ gyp wrapper
      ${nodePackages.node-gyp}/bin/node-gyp "$@" --tarball ${electron-gyp} --nodedir $HOME/.node-gyp/${nodejs.version}
    '';
  in
  yarn2nix.mkYarnPackage {
    name = "daedalus-js";
  
negative.code:   #  libunistring
    #  libusb1
    #] ++ stdenv.cc.libc.buildInputs;
    yarnPreBuild = ''
      mkdir -p $HOME/.node-gyp/${nodejs.version}
      echo 9 > $HOME/.node-gyp/${nodejs.version}/installVersion
      ln -sfv ${nodejs}/include $HOME/.node-gyp/${nodejs.version}
    '';
    pkgConfig = {
      node-sass = {
        buildInputs = [ python2 ];
        postInstall = ''
          yarn --offline run build
          rm build/config.gypi
        '';
      };
      electron-rebuild = {
  