mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
commit
10649af627
@ -1,24 +1,30 @@
|
|||||||
{ clipnotify, makeWrapper, xsel, dmenu, utillinux, gawk, stdenv, fetchFromGitHub, lib }:
|
{ clipnotify, makeWrapper, xsel, dmenu, utillinux, gawk, stdenv, fetchFromGitHub, fetchpatch, lib }:
|
||||||
let
|
let
|
||||||
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu utillinux gawk ];
|
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu utillinux gawk ];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "clipmenu";
|
pname = "clipmenu";
|
||||||
version = "6.0.1";
|
version = "6.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cdown";
|
owner = "cdown";
|
||||||
repo = "clipmenu";
|
repo = "clipmenu";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9";
|
sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/cdown/clipmenu/commit/443b58583ef216e2405e4a38d401f7c36386d21e.patch";
|
||||||
|
sha256 = "12m4rpw7jbr31c919llbsmn8dcf7yh9aijln4iym6h2lylzqzzdz";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
nativeBuildInputs = [ xsel clipnotify ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
|
||||||
cp clipdel clipmenu clipmenud $out/bin
|
|
||||||
|
|
||||||
for bin in $out/bin/*; do
|
for bin in $out/bin/*; do
|
||||||
wrapProgram "$bin" --prefix PATH : "${runtimePath}"
|
wrapProgram "$bin" --prefix PATH : "${runtimePath}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user