From b7f51920ee29cd56a21640d48694526f87cfbb3f Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Thu, 27 Nov 2014 21:06:24 +0100 Subject: [PATCH] sselp prints X selection to standard out --- pkgs/tools/X11/sselp/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/X11/sselp/default.nix 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c68b8f0d0128..8127ed7a01d8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4721,6 +4721,8 @@ let flex = flex_2_5_35; }; + sselp = callPackage ../tools/X11/sselp{ }; + stm32flash = callPackage ../development/tools/misc/stm32flash { }; strace = callPackage ../development/tools/misc/strace { };