2017-10-20 18:36:46 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, glib, gperf, utillinux, kmod}:
|
2014-11-17 07:44:26 +01:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="eudev";
|
2019-11-02 01:16:12 +01:00
|
|
|
version = "3.2.9";
|
2014-11-17 07:44:26 +01:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
|
2019-11-02 01:16:12 +01:00
|
|
|
sha256 = "1z6lfhhbjs6j7pbp6ybn17ywjsdl87ql6g1p3m2y26aa10cqcqc9";
|
2014-11-17 07:44:26 +01:00
|
|
|
};
|
2017-09-14 21:24:37 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-11-17 07:44:26 +01:00
|
|
|
buildInputs = [
|
2017-10-20 18:36:46 +02:00
|
|
|
glib gperf utillinux kmod
|
2014-11-17 07:44:26 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2017-09-14 21:24:37 +02:00
|
|
|
inherit nativeBuildInputs buildInputs;
|
2014-11-17 07:44:26 +01:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2017-01-21 08:55:17 +01:00
|
|
|
patches = [
|
|
|
|
];
|
|
|
|
|
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"
|
|
|
|
];
|
2015-07-09 12:27:29 +02:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
# Disable install-exec-hook target as it conflicts with our move-sbin setup-hook
|
|
|
|
sed -i 's;$(MAKE) $(AM_MAKEFLAGS) install-exec-hook;$(MAKE) $(AM_MAKEFLAGS);g' src/udev/Makefile
|
|
|
|
'';
|
|
|
|
|
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;
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = ''https://www.gentoo.org/proj/en/eudev/'';
|
2014-11-17 07:44:26 +01:00
|
|
|
downloadPage = ''http://dev.gentoo.org/~blueness/eudev/'';
|
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|