Update default.nix
This commit is contained in:
parent
cbb9af628e
commit
ce37a2e349
1 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
{ clipnotify, makeWrapper, xsel, dmenu, utillinux, gawk, stdenv, fetchFromGitHub, lib }:
|
||||
{ clipnotify, makeWrapper, xsel, dmenu, utillinux, gawk, stdenv, fetchFromGitHub, fetchpatch, lib }:
|
||||
let
|
||||
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu utillinux gawk ];
|
||||
in
|
||||
|
@ -12,11 +12,15 @@ stdenv.mkDerivation rec {
|
|||
rev = version;
|
||||
sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./Makefile --replace /usr "$out"
|
||||
'';
|
||||
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/cdown/clipmenu/commit/443b58583ef216e2405e4a38d401f7c36386d21e.patch";
|
||||
sha256 = "12m4rpw7jbr31c919llbsmn8dcf7yh9aijln4iym6h2lylzqzzdz";
|
||||
})
|
||||
];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
buildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ xsel clipnotify ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue