biosdevname: add package
This commit is contained in:
parent
ed890ab85f
commit
f43d070865
36
pkgs/tools/networking/biosdevname/default.nix
Normal file
36
pkgs/tools/networking/biosdevname/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{stdenv, fetchgit, automake, autoconf, zlib, pciutils}:
|
||||
let
|
||||
version = "0.5.1";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "biosdevname-${version}";
|
||||
|
||||
src = fetchgit {
|
||||
url = git://linux.dell.com/biosdevname.git;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "0qmgfyqv13qwh86140q0qdjxys76arg2d1slyvijx6r314ca4r7z";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
automake
|
||||
autoconf
|
||||
zlib
|
||||
pciutils
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
autoreconf -i
|
||||
'';
|
||||
|
||||
# Don't install /lib/udev/rules.d/*-biosdevname.rules
|
||||
patches = [ ./makefile.patch ];
|
||||
|
||||
configureFlags = [ "--sbindir=\${out}/bin" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Udev helper for naming devices per BIOS names";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
};
|
||||
}
|
13
pkgs/tools/networking/biosdevname/makefile.patch
Normal file
13
pkgs/tools/networking/biosdevname/makefile.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 14d9a92..9e324d2 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -8,8 +8,6 @@ dist_noinst_DATA = biosdevname.rules.in biosdevname.spec.fedora biosdevname.spec
|
||||
|
||||
CLEANFILES = version src/bios_dev_name.h
|
||||
install-data-local:
|
||||
- mkdir -p $(DESTDIR)@RULEDIR@
|
||||
- $(INSTALL_DATA) $(top_srcdir)/biosdevname.rules.in $(DESTDIR)@RULEDEST@
|
||||
|
||||
uninstall-local:
|
||||
rm -f $(DESTDIR)@RULEDEST@
|
@ -755,6 +755,8 @@ let
|
||||
|
||||
usb_modeswitch = callPackage ../development/tools/misc/usb-modeswitch { };
|
||||
|
||||
biosdevname = callPackage ../tools/networking/biosdevname { };
|
||||
|
||||
clamav = callPackage ../tools/security/clamav { };
|
||||
|
||||
cloc = callPackage ../tools/misc/cloc {
|
||||
|
Loading…
Reference in New Issue
Block a user