Merge pull request #206774 from SuperSandro2000/er-patcher

er-patcher: use mkDerivation

authored by Anderson Torres and committed by GitHub e83d9efe 7c707394

+9 -7
+9 -7
pkgs/tools/games/er-patcher/default.nix
··· 1 { lib 2 - , runCommandLocal 3 , fetchFromGitHub 4 , python3 5 }: 6 7 - runCommandLocal "er-patcher" rec { 8 pname = "er-patcher"; 9 version = "1.06-2"; 10 ··· 19 python3 20 ]; 21 22 meta = with lib; { 23 homepage = "https://github.com/gurrgur/er-patcher"; 24 changelog = "https://github.com/gurrgur/er-patcher/releases/tag/v${version}"; ··· 31 license = licenses.mit; 32 maintainers = [ maintainers.ivar ]; 33 }; 34 - } '' 35 - mkdir -p $out/bin 36 - install -Dm755 $src/er-patcher $out/bin/er-patcher 37 - patchShebangs $out/bin/er-patcher 38 - ''
··· 1 { lib 2 + , stdenvNoCC 3 , fetchFromGitHub 4 , python3 5 }: 6 7 + stdenvNoCC.mkDerivation rec { 8 pname = "er-patcher"; 9 version = "1.06-2"; 10 ··· 19 python3 20 ]; 21 22 + installPhase = '' 23 + mkdir -p $out/bin 24 + install -Dm755 $src/er-patcher $out/bin/er-patcher 25 + patchShebangs $out/bin/er-patcher 26 + ''; 27 + 28 meta = with lib; { 29 homepage = "https://github.com/gurrgur/er-patcher"; 30 changelog = "https://github.com/gurrgur/er-patcher/releases/tag/v${version}"; ··· 37 license = licenses.mit; 38 maintainers = [ maintainers.ivar ]; 39 }; 40 + }