anchor.diff:  , fetchurl
   , gcc-unwrapped
   , dpkg
  -, polkit
   , util-linux
   , bash
  -, nodePackages
   , makeWrapper
  -, electron_7
  +, electron_12
   }:
   
   let
     sha256 = {
  -    "x86_64-linux" = "1yvqi86bw0kym401zwknhwq9041fxg047sbj3aydnfcqf11vrrmk";
  -    "i686-linux" = "12lghzhsl16h3jvzm3vw4hrly32fz99z6rdmybl8viralrxy8mb8";
  +    "x86_64-linux" = "03nxcafg405vcs4sb5qhpm5aqaai87d9ksqkl37mmzf6g0n4qbih";
  +    "i686-linux" = "0z6y45sz086njpywg7f0jn6n02qynb1qbi889g2kcgwbfjvmcpm1";
     }."${stdenv.system}";
   
     arch = {
  
positive.code:     cp -a usr/share/* $out/share
      cp -a opt/balenaEtcher/{locales,resources} $out/share/${pname}
  
      substituteInPlace $out/share/applications/balena-etcher-electron.desktop \
        --replace 'Exec=/opt/balenaEtcher/balena-etcher-electron' 'Exec=${pname}'
  
      runHook postInstall
    '';
  
    postFixup = ''
      makeWrapper ${electron}/bin/electron $out/bin/${pname} \
        --add-flags $out/share/${pname}/resources/app.asar \
        --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gcc-unwrapped.lib ]}"
    '';
  
  
negative.code:     "i686-linux" = "i386";
    }."${stdenv.system}";
  
    electron = electron_12;
  
  in
  
  stdenv.mkDerivation rec {
    pname = "etcher";
    version = "1.5.117";
  
    src = fetchurl {
      url = "https://github.com/balena-io/etcher/releases/download/v${version}/balena-etcher-electron_${version}_${arch}.deb";
      inherit sha256;
    };
  
    nativeBuildInputs = [ makeWrapper ];
  
    dontConfigure = true;
    dontBuild = true;
  
    unpackPhase = ''
      ${dpkg}/bin/dpkg-deb -x $src .
  