mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #206774 from SuperSandro2000/er-patcher
er-patcher: use mkDerivation
This commit is contained in:
commit
e83d9efe4d
@ -1,10 +1,10 @@
|
||||
{ lib
|
||||
, runCommandLocal
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
runCommandLocal "er-patcher" rec {
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "er-patcher";
|
||||
version = "1.06-2";
|
||||
|
||||
@ -19,6 +19,12 @@ runCommandLocal "er-patcher" rec {
|
||||
python3
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -Dm755 $src/er-patcher $out/bin/er-patcher
|
||||
patchShebangs $out/bin/er-patcher
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/gurrgur/er-patcher";
|
||||
changelog = "https://github.com/gurrgur/er-patcher/releases/tag/v${version}";
|
||||
@ -31,8 +37,4 @@ runCommandLocal "er-patcher" rec {
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.ivar ];
|
||||
};
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
install -Dm755 $src/er-patcher $out/bin/er-patcher
|
||||
patchShebangs $out/bin/er-patcher
|
||||
''
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user