2014-12-07 17:03:55 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, glib, gperf, utillinux}:
|
2014-11-17 07:44:26 +01:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="eudev";
|
2015-03-21 19:22:56 +01:00
|
|
|
version = "3.0";
|
2014-11-17 07:44:26 +01:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
|
2015-03-21 19:22:56 +01:00
|
|
|
sha256 = "0afva1vh3lwhw9bryh41dxg82kfnxj1ifa91p3gjwffc2fpqmnvl";
|
2014-11-17 07:44:26 +01:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2014-12-07 17:03:55 +01:00
|
|
|
glib pkgconfig gperf utillinux
|
2014-11-17 07:44:26 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2014-12-12 12:48:14 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
];
|
2014-12-13 10:55:11 +01:00
|
|
|
makeFlags = [
|
|
|
|
"hwdb_bin=/var/lib/udev/hwdb.bin"
|
|
|
|
"udevrulesdir=/etc/udev/rules.d"
|
|
|
|
];
|
2014-12-12 12:48:14 +01:00
|
|
|
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"
|
2014-12-13 10:55:11 +01:00
|
|
|
"udevrulesdir=$(out)/var/lib/udev/rules.d"
|
2014-12-12 12:48:14 +01:00
|
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
2014-11-17 07:44:26 +01: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;
|
|
|
|
};
|
|
|
|
}
|