nixpkgs/pkgs/by-name/eu/eudev/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

92 lines
2.6 KiB
Nix
Raw Normal View History

2022-01-01 15:58:55 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, gperf
, kmod
, pkg-config
, util-linux
2024-10-10 10:23:12 +00:00
, testers
2022-01-01 15:58:55 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2022-01-01 15:58:55 +00:00
pname = "eudev";
2023-10-08 12:40:30 +00:00
version = "3.2.14";
2022-01-01 15:58:55 +00:00
src = fetchFromGitHub {
owner = "eudev-project";
repo = "eudev";
rev = "v${finalAttrs.version}";
2023-10-08 12:40:30 +00:00
hash = "sha256-v/szzqrBedQPRGYkZ0lV9rslCH//uqGp4PHEF0/51Lg=";
2014-11-17 06:44:26 +00:00
};
2022-01-01 15:58:55 +00:00
nativeBuildInputs = [
autoreconfHook
gperf
pkg-config
2014-11-17 06:44:26 +00:00
];
2022-01-01 15:58:55 +00:00
buildInputs = [
kmod
util-linux
2017-01-21 07:55:17 +00:00
];
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
];
2022-01-01 15:58:55 +00:00
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
2022-01-01 15:58:55 +00:00
sed -i 's;$(MAKE) $(AM_MAKEFLAGS) install-exec-hook;$(MAKE) $(AM_MAKEFLAGS);g' src/udev/Makefile
'';
2022-01-01 15:58:55 +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"
"udevrulesdir=$(out)/var/lib/udev/rules.d"
2022-01-01 15:58:55 +00:00
];
2024-10-10 10:23:12 +00:00
passthru.tests = {
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
meta = {
2022-01-01 15:58:55 +00:00
homepage = "https://github.com/eudev-project/eudev";
description = "Fork of udev with the aim of isolating it from init";
longDescription = ''
eudev is a standalone dynamic and persistent device naming support (aka
userspace devfs) daemon that runs independently from the init
system. eudev strives to remain init system and linux distribution
neutral. It is currently used as the devfs manager for more than a dozen
different linux distributions.
This git repo is a fork of systemd repository with the aim of isolating
udev from any particular flavor of system initialization. In this case,
the isolation is from systemd.
This is a project started by Gentoo developers and testing was initially
being done mostly on OpenRC. We welcome contribution from others using a
variety of system initializations to ensure eudev remains system
initialization and distribution neutral. On 2021-08-20 Gentoo decided to
abandon eudev and a new project was established on 2021-09-14 by Alpine,
Devuan and Gentoo contributors.
'';
changelog = "https://github.com/eudev-project/eudev/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ raskin AndersonTorres ];
2024-10-10 10:23:12 +00:00
pkgConfigModules = [ "libudev" "udev" ];
inherit (kmod.meta) platforms;
2014-11-17 06:44:26 +00:00
};
})