2019-07-30 20:20:52 +02:00
|
|
|
{ clipnotify, makeWrapper, xsel, dmenu, utillinux, gawk, stdenv, fetchFromGitHub, lib }:
|
2018-07-13 21:46:59 +02:00
|
|
|
let
|
2019-07-30 20:20:52 +02:00
|
|
|
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu utillinux gawk ];
|
2018-07-13 21:46:59 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "clipmenu";
|
2020-03-26 20:08:46 +01:00
|
|
|
version = "6.0.1";
|
2018-07-13 21:46:59 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdown";
|
|
|
|
repo = "clipmenu";
|
|
|
|
rev = version;
|
2020-03-26 20:08:46 +01:00
|
|
|
sha256 = "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9";
|
2018-07-13 21:46:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp clipdel clipmenu clipmenud $out/bin
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|