Merge pull request #107840 from ck3d/clipmenu-6.2.0

clipmenu: 6.1.0 -> 6.2.0 and fixes
This commit is contained in:
Lassulus 2021-01-01 00:07:19 +01:00 committed by GitHub
commit 5ab6b50b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,33 +1,43 @@
{ clipnotify, makeWrapper, xsel, dmenu, util-linux, gawk, stdenv, fetchFromGitHub, fetchpatch, lib }: { stdenv
let , lib
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu util-linux gawk ]; , fetchFromGitHub
in , makeWrapper
, clipnotify
, coreutils
, dmenu
, gawk
, util-linux
, xdotool
, xsel
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "clipmenu"; pname = "clipmenu";
version = "6.1.0"; version = "6.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cdown"; owner = "cdown";
repo = "clipmenu"; repo = "clipmenu";
rev = version; rev = version;
sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv"; sha256 = "sha256-nvctEwyho6kl4+NXi76jT2kG7nchmI2a7mgxlgjXA5A=";
}; };
patches = [ postPatch = ''
(fetchpatch { sed -i init/clipmenud.service \
url = "https://github.com/cdown/clipmenu/commit/443b58583ef216e2405e4a38d401f7c36386d21e.patch"; -e "s,/usr/bin,$out/bin,"
sha256 = "12m4rpw7jbr31c919llbsmn8dcf7yh9aijln4iym6h2lylzqzzdz"; '';
})
];
makeFlags = [ "PREFIX=$(out)" ]; makeFlags = [ "PREFIX=$(out)" ];
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];
nativeBuildInputs = [ xsel clipnotify ]; nativeBuildInputs = [ xsel clipnotify ];
installPhase = '' postFixup = ''
for bin in $out/bin/*; do sed -i "$out/bin/clipctl" -e 's,clipmenud\$,\.clipmenud-wrapped\$,'
wrapProgram "$bin" --prefix PATH : "${runtimePath}"
done wrapProgram "$out/bin/clipmenu" \
--prefix PATH : "${lib.makeBinPath [ xsel ]}"
wrapProgram "$out/bin/clipmenud" \
--set PATH "${lib.makeBinPath [ clipnotify coreutils gawk util-linux xdotool xsel ]}"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {