eudev: 3.2.10 -> 3.2.11

From GitHub.
main
AndersonTorres 2 years ago
parent 5a359ba13c
commit 837e61e168
  1. 76
      pkgs/os-specific/linux/eudev/default.nix

@ -1,60 +1,68 @@
{lib, stdenv, fetchurl, pkg-config, glib, gperf, util-linux, kmod}:
let
s = # Generated upstream information
rec {
baseName="eudev";
version = "3.2.10";
name="${baseName}-${version}";
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
sha256 = "sha256-h7sCjUcP0bhRaTSbRMVdW3M3M9wtUN3xGW4CZyXq0DQ=";
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, glib
, gperf
, kmod
, pkg-config
, util-linux
}:
stdenv.mkDerivation rec {
pname = "eudev";
version = "3.2.11";
src = fetchFromGitHub {
owner = "eudev-project";
repo = pname;
rev = "v${version}";
hash = "sha256-W5nL4hicQ4fxz5rqoP+hhkE1tVn8lJZjMq4UaiXH6jc=";
};
nativeBuildInputs = [ pkg-config gperf ];
buildInputs = [
glib util-linux kmod
nativeBuildInputs = [
autoreconfHook
gperf
pkg-config
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit nativeBuildInputs buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
patches = [
buildInputs = [
glib
kmod
util-linux
];
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
# 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 =
[
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://wiki.gentoo.org/wiki/Project:Eudev";
downloadPage = "http://dev.gentoo.org/~blueness/eudev/";
updateWalker = true;
];
meta = with lib; {
homepage = "https://github.com/eudev-project/eudev";
description = "A fork of udev with the aim of isolating it from init";
license = licenses.gpl2Plus ;
maintainers = with maintainers; [ raskin AndersonTorres ];
platforms = platforms.linux;
};
}

Loading…
Cancel
Save