er-patcher: use mkDerivation
This commit is contained in:
parent
76672661b9
commit
ae7e98fe8d
|
@ -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
|
|
||||||
''
|
|
||||||
|
|
Loading…
Reference in a new issue