2019-07-30 19:20:52 +01:00
|
|
|
{ clipnotify, makeWrapper, xsel, dmenu, utillinux, gawk, stdenv, fetchFromGitHub, lib }:
|
2018-07-13 20:46:59 +01:00
|
|
|
let
|
2019-07-30 19:20:52 +01:00
|
|
|
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu utillinux gawk ];
|
2018-07-13 20:46:59 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "clipmenu";
|
2020-07-28 14:29:26 +01:00
|
|
|
version = "6.1.0";
|
2018-07-13 20:46:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdown";
|
|
|
|
repo = "clipmenu";
|
|
|
|
rev = version;
|
2020-07-28 14:29:26 +01:00
|
|
|
sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv";
|
2018-07-13 20:46:59 +01:00
|
|
|
};
|
|
|
|
|
2020-07-29 10:45:18 +01:00
|
|
|
postPatch = ''
|
2020-07-28 16:02:08 +01:00
|
|
|
substituteInPlace ./Makefile --replace /usr "$out"
|
|
|
|
'';
|
2018-07-13 20:46:59 +01:00
|
|
|
|
2020-07-30 10:18:14 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
nativeBuildInputs = [ xsel clipnotify ];
|
2018-07-13 20:46:59 +01:00
|
|
|
|
2020-07-28 16:02:08 +01:00
|
|
|
installPhase = ''
|
2018-07-13 20:46:59 +01: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;
|
|
|
|
};
|
|
|
|
}
|