From 1603526000c2f5db86e018041677cfa80b4885a1 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Mon, 9 Jan 2017 06:07:25 +0100 Subject: xrectsel: init at 0.3.2 (#21153) --- pkgs/tools/X11/xrectsel/default.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/tools/X11/xrectsel/default.nix (limited to 'pkgs/tools/X11/xrectsel') diff --git a/pkgs/tools/X11/xrectsel/default.nix b/pkgs/tools/X11/xrectsel/default.nix new file mode 100644 index 0000000000000..f38ecab9f1127 --- /dev/null +++ b/pkgs/tools/X11/xrectsel/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, libX11 }: + +stdenv.mkDerivation rec { + name = "xrectsel-${version}"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "lolilolicon"; + repo = "xrectsel"; + rev = "${version}"; + sha256 = "0prl4ky3xzch6xcb673mcixk998d40ngim5dqc5374b1ls2r6n7l"; + }; + + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = [ libX11 ]; + + postBuild = '' + make DESTDIR="$out" install + ''; + + meta = with stdenv.lib; { + description = "Print the geometry of a rectangular screen region"; + homepage = https://github.com/lolilolicon/xrectsel; + license = licenses.gpl3; + maintainers = [ maintainers.guyonvarch ]; + platforms = platforms.linux; + }; +} -- cgit 1.4.1