Merge pull request #153080 from AndersonTorres/new-eudev

eudev: 3.2.10 -> 3.2.11

authored by 7c6f434c and committed by GitHub cc3ab45a b32eaac8

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