clipmenu: init at 5.4.0

clipmenu is a simple tool for managing you clipboard with dmenu.
This commit is contained in:
William Casarin 2018-07-13 12:46:59 -07:00
parent 1d31387775
commit fb130874fd
3 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ clipnotify, makeWrapper, xsel, dmenu2, utillinux, gawk, stdenv, fetchFromGitHub, lib }:
let
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu2 utillinux gawk ];
in
stdenv.mkDerivation rec {
name = "clipmenu-${version}";
version = "5.4.0";
src = fetchFromGitHub {
owner = "cdown";
repo = "clipmenu";
rev = version;
sha256 = "1qbpca0wny6i222vbikfl2znn3fynhbl4100qs8v4wn27ra5p0mi";
};
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;
};
}

View file

@ -0,0 +1,26 @@
{ libX11, libXfixes, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "clipnotify-${version}";
version = "git-2018-02-20";
src = fetchFromGitHub {
owner = "cdown";
repo = "clipnotify";
rev = "9cb223fbe494c5b71678a9eae704c21a97e3bddd";
sha256 = "1x9avjq0fgw0svcbw6b6873qnsqxbacls9sipmcv86xia4bxh8dn";
};
buildInputs = [ libX11 libXfixes ];
installPhase = ''
mkdir -p $out/bin
cp clipnotify $out/bin
'';
meta = with stdenv.lib; {
description = "Notify on new X clipboard events";
inherit (src.meta) homepage;
maintainers = with maintainers; [ jb55 ];
license = licenses.publicDomain;
};
}

View file

@ -5905,6 +5905,8 @@ with pkgs;
gccCross = pkgsCross.ben-nanonote.buildPackages.gccCrossStageStatic;
};
clipnotify = callPackage ../tools/misc/clipnotify { };
xclip = callPackage ../tools/misc/xclip { };
xcwd = callPackage ../tools/X11/xcwd { };
@ -15469,6 +15471,8 @@ with pkgs;
clipgrab = callPackage ../applications/video/clipgrab { };
clipmenu = callPackage ../applications/misc/clipmenu { };
clipit = callPackage ../applications/misc/clipit { };
cloud-print-connector = callPackage ../servers/cloud-print-connector { };