1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/os-specific/linux/eudev/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

2014-12-07 16:03:55 +00:00
{stdenv, fetchurl, pkgconfig, glib, gperf, utillinux}:
2014-11-17 06:44:26 +00:00
let
s = # Generated upstream information
rec {
baseName="eudev";
2015-06-14 09:21:44 +01:00
version = "3.1.1";
2014-11-17 06:44:26 +00:00
name="${baseName}-${version}";
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
2015-06-14 09:21:44 +01:00
sha256 = "1r1jbk1fwc4wl0ifm7xzkb2vjd8w1a39hx6mmy4pp4fl2gvcg86k";
2014-11-17 06:44:26 +00:00
};
buildInputs = [
2014-12-07 16:03:55 +00:00
glib pkgconfig gperf utillinux
2014-11-17 06:44:26 +00:00
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
];
makeFlags = [
"hwdb_bin=/var/lib/udev/hwdb.bin"
"udevrulesdir=/etc/udev/rules.d"
];
installFlags =
[
"localstatedir=$(TMPDIR)/var"
"sysconfdir=$(out)/etc"
"udevconfdir=$(out)/etc/udev"
"udevhwdbbin=$(out)/var/lib/udev/hwdb.bin"
"udevhwdbdir=$(out)/var/lib/udev/hwdb.d"
"udevrulesdir=$(out)/var/lib/udev/rules.d"
];
enableParallelBuilding = true;
2014-11-17 06:44:26 +00:00
meta = {
inherit (s) version;
description = ''An udev fork by Gentoo'';
license = stdenv.lib.licenses.gpl2Plus ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
homepage = ''http://www.gentoo.org/proj/en/eudev/'';
downloadPage = ''http://dev.gentoo.org/~blueness/eudev/'';
updateWalker = true;
};
}