mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
73 lines
1.2 KiB
Nix
73 lines
1.2 KiB
Nix
{ 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";
|
|
};
|
|
|
|
patches = [
|
|
./fix-config_h-includes-should-be-first.patch
|
|
];
|
|
|
|
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 = "Command-line tool to print idle time from libXss";
|
|
homepage = "https://github.com/taktoa/xprintidle-ng";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "xprintidle-ng";
|
|
};
|
|
}
|