uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
67
pkgs/tools/X11/xprintidle-ng/default.nix
Normal file
67
pkgs/tools/X11/xprintidle-ng/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, libX11
|
||||
, libXScrnSaver
|
||||
, libXext
|
||||
, gnulib
|
||||
, autoconf
|
||||
, automake
|
||||
, libtool
|
||||
, gettext
|
||||
, pkg-config
|
||||
, git
|
||||
, perl
|
||||
, texinfo
|
||||
, help2man
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xprintidle-ng";
|
||||
version = "unstable-2015-09-01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "taktoa";
|
||||
repo = pname;
|
||||
rev = "9083ba284d9222541ce7da8dc87d5a27ef5cc592";
|
||||
sha256 = "0a5024vimpfrpj6w60j1ad8qvjkrmxiy8w1yijxfwk917ag9rkpq";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace configure.ac \
|
||||
--replace "AC_PREREQ([2.62])" "AC_PREREQ([2.64])"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
gettext
|
||||
git
|
||||
gnulib
|
||||
help2man
|
||||
libtool
|
||||
perl
|
||||
pkg-config
|
||||
texinfo
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
./bootstrap --gnulib-srcdir=${gnulib}
|
||||
./configure --prefix="$out"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXScrnSaver
|
||||
libXext
|
||||
];
|
||||
|
||||
meta = {
|
||||
inherit version;
|
||||
description = "A command-line tool to print idle time from libXss";
|
||||
homepage = "http://taktoa.me/xprintidle-ng/";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [ lib.maintainers.raskin ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue