er-patcher: use mkDerivation

This commit is contained in:
Sandro Jäckel 2022-12-18 23:23:36 +01:00
parent 76672661b9
commit ae7e98fe8d
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,10 +1,10 @@
{ lib { lib
, runCommandLocal , stdenvNoCC
, fetchFromGitHub , fetchFromGitHub
, python3 , python3
}: }:
runCommandLocal "er-patcher" rec { stdenvNoCC.mkDerivation rec {
pname = "er-patcher"; pname = "er-patcher";
version = "1.06-2"; version = "1.06-2";
@ -19,6 +19,12 @@ runCommandLocal "er-patcher" rec {
python3 python3
]; ];
installPhase = ''
mkdir -p $out/bin
install -Dm755 $src/er-patcher $out/bin/er-patcher
patchShebangs $out/bin/er-patcher
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/gurrgur/er-patcher"; homepage = "https://github.com/gurrgur/er-patcher";
changelog = "https://github.com/gurrgur/er-patcher/releases/tag/v${version}"; changelog = "https://github.com/gurrgur/er-patcher/releases/tag/v${version}";
@ -31,8 +37,4 @@ runCommandLocal "er-patcher" rec {
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.ivar ]; maintainers = [ maintainers.ivar ];
}; };
} '' }
mkdir -p $out/bin
install -Dm755 $src/er-patcher $out/bin/er-patcher
patchShebangs $out/bin/er-patcher
''