2021-01-19 06:50:56 +00:00
|
|
|
{lib, stdenv, fetchurl, pkg-config, glib, gperf, util-linux, kmod}:
|
2014-11-17 06:44:26 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="eudev";
|
2021-02-12 08:33:41 +00:00
|
|
|
version = "3.2.10";
|
2014-11-17 06:44:26 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
|
2021-02-12 08:33:41 +00:00
|
|
|
sha256 = "sha256-h7sCjUcP0bhRaTSbRMVdW3M3M9wtUN3xGW4CZyXq0DQ=";
|
2014-11-17 06:44:26 +00:00
|
|
|
};
|
2017-09-14 20:24:37 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-11-17 06:44:26 +00:00
|
|
|
buildInputs = [
|
2020-11-24 15:29:28 +00:00
|
|
|
glib gperf util-linux kmod
|
2014-11-17 06:44:26 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2017-09-14 20:24:37 +01:00
|
|
|
inherit nativeBuildInputs buildInputs;
|
2014-11-17 06:44:26 +00:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2017-01-21 07:55:17 +00:00
|
|
|
patches = [
|
|
|
|
];
|
|
|
|
|
2014-12-12 11:48:14 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
];
|
2014-12-13 09:55:11 +00:00
|
|
|
makeFlags = [
|
|
|
|
"hwdb_bin=/var/lib/udev/hwdb.bin"
|
|
|
|
"udevrulesdir=/etc/udev/rules.d"
|
|
|
|
];
|
2015-07-09 11:27:29 +01: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 11:48:14 +00: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 09:55:11 +00:00
|
|
|
"udevrulesdir=$(out)/var/lib/udev/rules.d"
|
2014-12-12 11:48:14 +00:00
|
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
2014-11-17 06:44:26 +00:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "An udev fork by Gentoo";
|
2021-01-15 14:45:37 +00:00
|
|
|
license = lib.licenses.gpl2Plus ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2021-01-24 09:19:10 +00:00
|
|
|
homepage = "https://www.gentoo.org/proj/en/eudev/";
|
|
|
|
downloadPage = "http://dev.gentoo.org/~blueness/eudev/";
|
2014-11-17 06:44:26 +00:00
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|