diff options
-rw-r--r-- | pkgs/applications/misc/clipmenu/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/applications/misc/clipmenu/default.nix b/pkgs/applications/misc/clipmenu/default.nix index c4155daab82ad..c143f70445002 100644 --- a/pkgs/applications/misc/clipmenu/default.nix +++ b/pkgs/applications/misc/clipmenu/default.nix @@ -13,12 +13,13 @@ stdenv.mkDerivation rec { sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv"; }; - buildInputs = [ makeWrapper ]; + preBuild = '' + substituteInPlace ./Makefile --replace /usr "$out" + ''; - installPhase = '' - mkdir -p $out/bin - cp clipdel clipmenu clipmenud $out/bin + buildInputs = [ makeWrapper xsel clipnotify ]; + installPhase = '' for bin in $out/bin/*; do wrapProgram "$bin" --prefix PATH : "${runtimePath}" done |