2014-11-27 20:06:24 +00:00
|
|
|
{ stdenv, fetchurl, libX11 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.2";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sselp";
|
2014-11-27 20:06:24 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://dl.suckless.org/tools/${pname}-${version}.tar.gz";
|
2014-11-27 20:06:24 +00:00
|
|
|
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 = {
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://tools.suckless.org/sselp;
|
2014-12-30 02:31:03 +00:00
|
|
|
description = "Prints the X selection to stdout, useful in scripts";
|
2014-11-27 20:06:24 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-11-27 20:30:36 +00:00
|
|
|
maintainers = [stdenv.lib.maintainers.magnetophon ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-11-27 20:06:24 +00:00
|
|
|
};
|
|
|
|
}
|