fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / xp / xprintidle-ng / package.nix
blob3aa606de4b61c60e1068dec8dfa7be12c23595a9
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   libX11,
6   libXScrnSaver,
7   libXext,
8   gnulib,
9   autoconf,
10   automake,
11   libtool,
12   gettext,
13   pkg-config,
14   git,
15   perl,
16   texinfo,
17   help2man,
20 stdenv.mkDerivation rec {
21   pname = "xprintidle-ng";
22   version = "unstable-2015-09-01";
24   src = fetchFromGitHub {
25     owner = "taktoa";
26     repo = pname;
27     rev = "9083ba284d9222541ce7da8dc87d5a27ef5cc592";
28     sha256 = "0a5024vimpfrpj6w60j1ad8qvjkrmxiy8w1yijxfwk917ag9rkpq";
29   };
31   patches = [
32     ./fix-config_h-includes-should-be-first.patch
33   ];
35   postPatch = ''
36     substituteInPlace configure.ac \
37       --replace "AC_PREREQ([2.62])" "AC_PREREQ([2.64])"
38   '';
40   nativeBuildInputs = [
41     autoconf
42     automake
43     gettext
44     git
45     gnulib
46     help2man
47     libtool
48     perl
49     pkg-config
50     texinfo
51   ];
53   configurePhase = ''
54     ./bootstrap --gnulib-srcdir=${gnulib}
55     ./configure --prefix="$out"
56   '';
58   buildInputs = [
59     libX11
60     libXScrnSaver
61     libXext
62   ];
64   meta = {
65     inherit version;
66     description = "Command-line tool to print idle time from libXss";
67     homepage = "https://github.com/taktoa/xprintidle-ng";
68     license = lib.licenses.gpl2Only;
69     maintainers = [ lib.maintainers.raskin ];
70     platforms = lib.platforms.linux;
71     mainProgram = "xprintidle-ng";
72   };