Skip to content

Commit

Permalink
xrectsel: init at 0.3.2 (#21153)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyonvarch authored and fpletz committed Jan 9, 2017
1 parent 917e67f commit 1603526
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
20 changes: 9 additions & 11 deletions pkgs/tools/X11/ffcast/default.nix
@@ -1,22 +1,20 @@
{ stdenv, fetchgit, autoconf, automake, perl, libX11 }:
{ stdenv, fetchFromGitHub, autoreconfHook, perl, libX11 }:

stdenv.mkDerivation rec {
name = "ffcast-${version}";
version = "2.5.0";
rev = "7c3bf681e7ca9b242e55dbf0c07856ed994d94e9";

src = fetchgit {
url = https://github.com/lolilolicon/FFcast;
sha256 = "1s1y6rqjq126jvdzc75wz20szisbz8h8fkphlwxcxzl9xll17akj";
src = fetchFromGitHub {
owner = "lolilolicon";
repo = "FFcast";
rev = "${version}";
sha256 = "047y32bixhc8ksr98vwpgd0k1xxgsv2vs0n3kc2xdac4krc9454h";
};

buildInputs = [ autoconf automake perl libX11 ];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ perl libX11 ];

preConfigure = ''
./bootstrap
'';

configureFlags = [ "--enable-xrectsel" ];
configureFlags = [ "--disable-xrectsel" ];

postBuild = ''
make DESTDIR="$out" install
Expand Down
28 changes: 28 additions & 0 deletions 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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -15707,6 +15707,8 @@ in
#TODO: 'pil' is not available for python3, yet
xpraGtk3 = callPackage ../tools/X11/xpra/gtk3.nix { inherit (texFunctions) fontsConf; inherit (python3Packages) buildPythonApplication python cython pygobject3 pycairo; };

xrectsel = callPackage ../tools/X11/xrectsel { };

xrestop = callPackage ../tools/X11/xrestop { };

xsd = callPackage ../development/libraries/xsd { };
Expand Down

0 comments on commit 1603526

Please sign in to comment.