nixpkgs/pkgs/os-specific/linux/eudev/default.nix

61 lines
1.6 KiB
Nix
Raw Normal View History

{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";
2019-11-02 00:16:12 +00:00
version = "3.2.9";
2014-11-17 06:44:26 +00:00
name="${baseName}-${version}";
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
2019-11-02 00:16:12 +00:00
sha256 = "1z6lfhhbjs6j7pbp6ybn17ywjsdl87ql6g1p3m2y26aa10cqcqc9";
2014-11-17 06:44:26 +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;
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 = [
];
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
];
makeFlags = [
"hwdb_bin=/var/lib/udev/hwdb.bin"
"udevrulesdir=/etc/udev/rules.d"
];
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
'';
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";
2021-01-15 14:45:37 +00:00
license = lib.licenses.gpl2Plus ;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
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;
};
}