2017-01-26 02:30:02 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pciutils }:
|
2016-01-18 00:04:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-05-13 06:31:10 +02:00
|
|
|
name = "biosdevname-${version}";
|
2017-01-26 02:30:02 +01:00
|
|
|
version = "0.7.2";
|
2016-01-18 00:04:40 +01:00
|
|
|
|
2017-01-26 02:30:02 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dell";
|
|
|
|
repo = "biosdevname";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "183k6f9nayhai27y6nizf0sp9bj1kabykj66hcwdzllhrrh505sd";
|
2014-05-13 06:31:10 +02:00
|
|
|
};
|
|
|
|
|
2017-01-26 02:30:02 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib pciutils ];
|
2014-05-13 06:31:10 +02:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|