2016-01-17 23:04:40 +00:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, zlib, pciutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-05-13 05:31:10 +01:00
|
|
|
name = "biosdevname-${version}";
|
2016-01-17 23:04:40 +00:00
|
|
|
version = "0.6.1";
|
|
|
|
|
2014-05-13 05:31:10 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = git://linux.dell.com/biosdevname.git;
|
|
|
|
rev = "refs/tags/v${version}";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "059s3qyky9i497c9wnrjml15sknpsqbv01ww7q95bf9ybhdqqq8w";
|
2014-05-13 05:31:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-01-17 23:04:40 +00:00
|
|
|
autoreconfHook
|
2014-05-13 05:31:10 +01:00
|
|
|
zlib
|
|
|
|
pciutils
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|