nixpkgs/pkgs/applications/misc/clipmenu/default.nix
Xaver Hellauer f8e65461eb
Update pkgs/applications/misc/clipmenu/default.nix
Co-authored-by: Nikolay Korotkiy <sikmir@gmail.com>
2020-07-29 11:45:18 +02:00

35 lines
868 B
Nix

{ clipnotify, makeWrapper, xsel, dmenu, utillinux, gawk, stdenv, fetchFromGitHub, lib }:
let
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu utillinux gawk ];
in
stdenv.mkDerivation rec {
pname = "clipmenu";
version = "6.1.0";
src = fetchFromGitHub {
owner = "cdown";
repo = "clipmenu";
rev = version;
sha256 = "0ddj5xcwrdb2qvrndvhv8j6swcqc8dvv5i00pqk35rfk5mrl4hwv";
};
postPatch = ''
substituteInPlace ./Makefile --replace /usr "$out"
'';
buildInputs = [ makeWrapper xsel clipnotify ];
installPhase = ''
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;
};
}