biosdevname: add package

This commit is contained in:
Charles Strahan 2014-05-13 00:31:10 -04:00
parent ed890ab85f
commit f43d070865
3 changed files with 51 additions and 0 deletions

View 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 ];
};
}

View 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@

View File

@ -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 {