git.iko.soy/typeable/nixpkgs
on master help sign in
Use upstream Makefile

Since v 6.1 upstream provides a Makefile, therefore I removed the install steps in `installPhase`.

commitcafe0e2cb1bac4c281cfdb8789519476a03127c0 authorXaver Hellauer <xaver.hellauer@gmail.com> dateTue 28 Jul 2020, 17:02 (6 years ago) parent5a0c05e
1 file changed+5−4
pkgs/applications/misc/clipmenu/default.nix+5−4
pkgs/applications/misc/clipmenu/default.nix+5−4
@@ -13,12 +13,13 @@ stdenv.mkDerivation rec {
1313 sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv";
1414 };
1515
16− buildInputs = [ makeWrapper ];
16+ preBuild = ''
17+ substituteInPlace ./Makefile --replace /usr "$out"
18+ '';
1719
18− installPhase = ''
19− mkdir -p $out/bin
20− cp clipdel clipmenu clipmenud $out/bin
20+ buildInputs = [ makeWrapper xsel clipnotify ];
2121
22+ installPhase = ''
2223 for bin in $out/bin/*; do
2324 wrapProgram "$bin" --prefix PATH : "${runtimePath}"
2425 done