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

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