tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
eudev: 3.2.10 -> 3.2.11
From GitHub.
AndersonTorres
4 years ago
837e61e1
5a359ba1
+42
-34
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
eudev
default.nix
+42
-34
pkgs/os-specific/linux/eudev/default.nix
···
1
1
-
{lib, stdenv, fetchurl, pkg-config, glib, gperf, util-linux, kmod}:
2
2
-
let
3
3
-
s = # Generated upstream information
4
4
-
rec {
5
5
-
baseName="eudev";
6
6
-
version = "3.2.10";
7
7
-
name="${baseName}-${version}";
8
8
-
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
9
9
-
sha256 = "sha256-h7sCjUcP0bhRaTSbRMVdW3M3M9wtUN3xGW4CZyXq0DQ=";
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, autoreconfHook
5
5
+
, glib
6
6
+
, gperf
7
7
+
, kmod
8
8
+
, pkg-config
9
9
+
, util-linux
10
10
+
}:
11
11
+
12
12
+
stdenv.mkDerivation rec {
13
13
+
pname = "eudev";
14
14
+
version = "3.2.11";
15
15
+
16
16
+
src = fetchFromGitHub {
17
17
+
owner = "eudev-project";
18
18
+
repo = pname;
19
19
+
rev = "v${version}";
20
20
+
hash = "sha256-W5nL4hicQ4fxz5rqoP+hhkE1tVn8lJZjMq4UaiXH6jc=";
10
21
};
11
22
12
12
-
nativeBuildInputs = [ pkg-config gperf ];
13
13
-
buildInputs = [
14
14
-
glib util-linux kmod
23
23
+
nativeBuildInputs = [
24
24
+
autoreconfHook
25
25
+
gperf
26
26
+
pkg-config
15
27
];
16
16
-
in
17
17
-
stdenv.mkDerivation {
18
18
-
inherit (s) name version;
19
19
-
inherit nativeBuildInputs buildInputs;
20
20
-
src = fetchurl {
21
21
-
inherit (s) url sha256;
22
22
-
};
23
23
-
patches = [
28
28
+
29
29
+
buildInputs = [
30
30
+
glib
31
31
+
kmod
32
32
+
util-linux
24
33
];
25
34
26
35
configureFlags = [
27
36
"--localstatedir=/var"
28
37
"--sysconfdir=/etc"
29
38
];
39
39
+
30
40
makeFlags = [
31
41
"hwdb_bin=/var/lib/udev/hwdb.bin"
32
42
"udevrulesdir=/etc/udev/rules.d"
33
43
];
34
44
35
45
preInstall = ''
36
36
-
# Disable install-exec-hook target as it conflicts with our move-sbin setup-hook
46
46
+
# Disable install-exec-hook target,
47
47
+
# as it conflicts with our move-sbin setup-hook
48
48
+
37
49
sed -i 's;$(MAKE) $(AM_MAKEFLAGS) install-exec-hook;$(MAKE) $(AM_MAKEFLAGS);g' src/udev/Makefile
38
50
'';
39
51
40
40
-
installFlags =
41
41
-
[
52
52
+
installFlags = [
42
53
"localstatedir=$(TMPDIR)/var"
43
54
"sysconfdir=$(out)/etc"
44
55
"udevconfdir=$(out)/etc/udev"
45
56
"udevhwdbbin=$(out)/var/lib/udev/hwdb.bin"
46
57
"udevhwdbdir=$(out)/var/lib/udev/hwdb.d"
47
58
"udevrulesdir=$(out)/var/lib/udev/rules.d"
48
48
-
];
49
49
-
enableParallelBuilding = true;
50
50
-
meta = {
51
51
-
inherit (s) version;
52
52
-
description = "An udev fork by Gentoo";
53
53
-
license = lib.licenses.gpl2Plus ;
54
54
-
maintainers = [lib.maintainers.raskin];
55
55
-
platforms = lib.platforms.linux;
56
56
-
homepage = "https://wiki.gentoo.org/wiki/Project:Eudev";
57
57
-
downloadPage = "http://dev.gentoo.org/~blueness/eudev/";
58
58
-
updateWalker = true;
59
59
+
];
60
60
+
61
61
+
meta = with lib; {
62
62
+
homepage = "https://github.com/eudev-project/eudev";
63
63
+
description = "A fork of udev with the aim of isolating it from init";
64
64
+
license = licenses.gpl2Plus ;
65
65
+
maintainers = with maintainers; [ raskin AndersonTorres ];
66
66
+
platforms = platforms.linux;
59
67
};
60
68
}