anchor.diff:  
     quartus = stdenv.mkDerivation rec {
       version = "19.1.0.670";
  -    pname = "quartus-prime-lite";
  +    pname = "quartus-prime-lite-unwrapped";
   
       src = let
         require = {name, sha256}: requireFile {
  
positive.code:   };
  
    desktopItem = makeDesktopItem {
      name = quartus.name;
      exec = "quartus";
      icon = "quartus";
      desktopName = "Quartus";
      genericName = "Quartus FPGA IDE";
      categories = "Development;";
    };
  
  # I think modelsim_ase/linux/vlm checksums itself, so use FHSUserEnv instead of `patchelf`
  in buildFHSUserEnv {
    name = "quartus-prime-lite";
  
    targetPkgs = pkgs: with pkgs; [
      # quartus requirements
  
negative.code:     xorg.libXrender
    ];
  
    passthru = {
      unwrapped = quartus;
    };
  
    extraInstallCommands = let
      quartusExecutables = (map (c: "quartus/bin/quartus_${c}") [
        "asm" "cdb" "cpf" "drc" "eda" "fit" "jbcc" "jli" "map" "pgm" "pow"
        "sh" "si" "sim" "sta" "stp" "tan"
      ]) ++ [ "quartus/bin/quartus" ];
  
      qsysExecutables = map (c: "quartus/sopc_builder/bin/qsys-${c}") [
        "generate" "edit" "script"
      ];
      # Should we install all executables ?
      modelsimExecutables = map (c: "modelsim_ase/bin/${c}") [
        "vsim" "vlog" "vlib"
      ];
    in ''
      mkdir -p $out/share/applications $out/share/icons/128x128
      ln -s ${desktopItem}/share/applications/* $out/share/applications
      ln -s ${quartus}/licenses/images/dc_quartus_panel_logo.png $out/share/icons/128x128/quartus.png
  
      mkdir -p $out/quartus/bin $out/quartus/sopc_builder/bin $out/modelsim_ase/bin
      WRAPPER=$out/bin/${name}
      EXECUTABLES="${lib.concatStringsSep " " (quartusExecutables ++ qsysExecutables ++ modelsimExecutables)}"
      for executable in $EXECUTABLES; do
          echo "#!${stdenv.shell}" >> $out/$executable
          echo "$WRAPPER ${quartus}/$executable \$@" >> $out/$executable
      done
  
      cd $out
      chmod +x $EXECUTABLES
      # link into $out/bin so executables become available on $PATH
      ln --symbolic --relative --target-directory ./bin $EXECUTABLES
    '';
  
    runScript = writeScript "${name}-wrapper" ''
      exec $@
    '';
  }
  