diff options
author | Bart Brouns <bart@magnetophon.nl> | 2014-11-27 21:06:24 +0100 |
---|---|---|
committer | Bart Brouns <bart@magnetophon.nl> | 2014-11-27 21:06:24 +0100 |
commit | b7f51920ee29cd56a21640d48694526f87cfbb3f (patch) | |
tree | e06ee3985244f3eb0c2aa213877d8e5400a16d38 /pkgs/tools/X11/sselp | |
parent | 28a1af6e06ec9837ea9a64e6e9ed0d07a45cd032 (diff) |
sselp prints X selection to standard out
Diffstat (limited to 'pkgs/tools/X11/sselp')
-rw-r--r-- | pkgs/tools/X11/sselp/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/X11/sselp/default.nix b/pkgs/tools/X11/sselp/default.nix new file mode 100644 index 000000000000..3e47715a8c7b --- /dev/null +++ b/pkgs/tools/X11/sselp/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, libX11 }: + +stdenv.mkDerivation rec { + version = "0.2"; + name = "sselp-${version}"; + + src = fetchurl { + url = "http://dl.suckless.org/tools/${name}.tar.gz"; + sha256 = "08mqp00lrh1chdrbs18qr0xv63h866lkmfj87kfscwdm1vn9a3yd"; + }; + + buildInputs = [ libX11 ]; + + patchPhase = '' + sed -i "s@/usr/local@$out@g" config.mk + sed -i "s@/usr/X11R6/include@${libX11}/include@g" config.mk + sed -i "s@/usr/X11R6/lib@${libX11}/lib@g" config.mk + ''; + + meta = { + homepage = "http://tools.suckless.org/sselp"; + description = "Prints the X selection to stdout, usefull in scripts"; + license = stdenv.lib.licenses.mit; + }; +} |