2020-11-24 16:29:28 +01:00
|
|
|
{ clipnotify, makeWrapper, xsel, dmenu, util-linux, gawk, stdenv, fetchFromGitHub, fetchpatch, lib }:
|
2018-07-13 21:46:59 +02:00
|
|
|
let
|
2020-11-24 16:29:28 +01:00
|
|
|
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu util-linux gawk ];
|
2018-07-13 21:46:59 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "clipmenu";
|
2020-07-28 15:29:26 +02:00
|
|
|
version = "6.1.0";
|
2018-07-13 21:46:59 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdown";
|
|
|
|
repo = "clipmenu";
|
|
|
|
rev = version;
|
2020-07-28 15:29:26 +02:00
|
|
|
sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv";
|
2018-07-13 21:46:59 +02:00
|
|
|
};
|
2020-08-01 12:26:00 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/cdown/clipmenu/commit/443b58583ef216e2405e4a38d401f7c36386d21e.patch";
|
|
|
|
sha256 = "12m4rpw7jbr31c919llbsmn8dcf7yh9aijln4iym6h2lylzqzzdz";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2020-07-30 11:18:14 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
nativeBuildInputs = [ xsel clipnotify ];
|
2018-07-13 21:46:59 +02:00
|
|
|
|
2020-07-28 17:02:08 +02:00
|
|
|
installPhase = ''
|
2018-07-13 21:46:59 +02:00
|
|
|
for bin in $out/bin/*; do
|
|
|
|
wrapProgram "$bin" --prefix PATH : "${runtimePath}"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Clipboard management using dmenu";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
maintainers = with maintainers; [ jb55 ];
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
};
|
|
|
|
}
|