nixpkgs/pkgs/os-specific/linux/eudev/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

61 lines
1.6 KiB
Nix

{lib, stdenv, fetchurl, pkg-config, glib, gperf, util-linux, kmod}:
let
s = # Generated upstream information
rec {
baseName="eudev";
version = "3.2.9";
name="${baseName}-${version}";
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
sha256 = "1z6lfhhbjs6j7pbp6ybn17ywjsdl87ql6g1p3m2y26aa10cqcqc9";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
glib gperf util-linux kmod
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit nativeBuildInputs buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
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;
meta = {
inherit (s) version;
description = ''An udev fork by Gentoo'';
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/'';
updateWalker = true;
};
}