3
0
Fork 0
forked from mirrors/nixpkgs

Use upstream Makefile

Since v 6.1 upstream provides a Makefile, therefore I removed the install steps in `installPhase`.
This commit is contained in:
Xaver Hellauer 2020-07-28 17:02:08 +02:00 committed by GitHub
parent 5a0c05e61b
commit cafe0e2cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,12 +13,13 @@ stdenv.mkDerivation rec {
sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv";
};
buildInputs = [ makeWrapper ];
preBuild = ''
substituteInPlace ./Makefile --replace /usr "$out"
'';
buildInputs = [ makeWrapper xsel clipnotify ];
installPhase = ''
mkdir -p $out/bin
cp clipdel clipmenu clipmenud $out/bin
for bin in $out/bin/*; do
wrapProgram "$bin" --prefix PATH : "${runtimePath}"
done