eudev: 3.2.10 -> 3.2.11
From GitHub.
This commit is contained in:
parent
5a359ba13c
commit
837e61e168
|
@ -1,60 +1,68 @@
|
||||||
{lib, stdenv, fetchurl, pkg-config, glib, gperf, util-linux, kmod}:
|
{ lib
|
||||||
let
|
, stdenv
|
||||||
s = # Generated upstream information
|
, fetchFromGitHub
|
||||||
rec {
|
, autoreconfHook
|
||||||
baseName="eudev";
|
, glib
|
||||||
version = "3.2.10";
|
, gperf
|
||||||
name="${baseName}-${version}";
|
, kmod
|
||||||
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
|
, pkg-config
|
||||||
sha256 = "sha256-h7sCjUcP0bhRaTSbRMVdW3M3M9wtUN3xGW4CZyXq0DQ=";
|
, 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 ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [
|
autoreconfHook
|
||||||
glib util-linux kmod
|
gperf
|
||||||
|
pkg-config
|
||||||
];
|
];
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
buildInputs = [
|
||||||
inherit (s) name version;
|
glib
|
||||||
inherit nativeBuildInputs buildInputs;
|
kmod
|
||||||
src = fetchurl {
|
util-linux
|
||||||
inherit (s) url sha256;
|
|
||||||
};
|
|
||||||
patches = [
|
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"hwdb_bin=/var/lib/udev/hwdb.bin"
|
"hwdb_bin=/var/lib/udev/hwdb.bin"
|
||||||
"udevrulesdir=/etc/udev/rules.d"
|
"udevrulesdir=/etc/udev/rules.d"
|
||||||
];
|
];
|
||||||
|
|
||||||
preInstall = ''
|
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
|
sed -i 's;$(MAKE) $(AM_MAKEFLAGS) install-exec-hook;$(MAKE) $(AM_MAKEFLAGS);g' src/udev/Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installFlags =
|
installFlags = [
|
||||||
[
|
|
||||||
"localstatedir=$(TMPDIR)/var"
|
"localstatedir=$(TMPDIR)/var"
|
||||||
"sysconfdir=$(out)/etc"
|
"sysconfdir=$(out)/etc"
|
||||||
"udevconfdir=$(out)/etc/udev"
|
"udevconfdir=$(out)/etc/udev"
|
||||||
"udevhwdbbin=$(out)/var/lib/udev/hwdb.bin"
|
"udevhwdbbin=$(out)/var/lib/udev/hwdb.bin"
|
||||||
"udevhwdbdir=$(out)/var/lib/udev/hwdb.d"
|
"udevhwdbdir=$(out)/var/lib/udev/hwdb.d"
|
||||||
"udevrulesdir=$(out)/var/lib/udev/rules.d"
|
"udevrulesdir=$(out)/var/lib/udev/rules.d"
|
||||||
];
|
];
|
||||||
enableParallelBuilding = true;
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
inherit (s) version;
|
homepage = "https://github.com/eudev-project/eudev";
|
||||||
description = "An udev fork by Gentoo";
|
description = "A fork of udev with the aim of isolating it from init";
|
||||||
license = lib.licenses.gpl2Plus ;
|
license = licenses.gpl2Plus ;
|
||||||
maintainers = [lib.maintainers.raskin];
|
maintainers = with maintainers; [ raskin AndersonTorres ];
|
||||||
platforms = lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
homepage = "https://wiki.gentoo.org/wiki/Project:Eudev";
|
|
||||||
downloadPage = "http://dev.gentoo.org/~blueness/eudev/";
|
|
||||||
updateWalker = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue