2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, pciutils }:
|
2016-01-17 23:04:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "biosdevname";
|
2018-02-09 01:58:20 +00:00
|
|
|
version = "0.7.3";
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2017-01-26 01:30:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dell";
|
|
|
|
repo = "biosdevname";
|
|
|
|
rev = "v${version}";
|
2018-02-09 01:58:20 +00:00
|
|
|
sha256 = "19wbb79x9h79k55sgd4dylvdbhhrvfaiaknbw9s1wvfmirkxa1dz";
|
2014-05-13 04:31:10 +00:00
|
|
|
};
|
|
|
|
|
2017-01-26 01:30:02 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib pciutils ];
|
2014-05-13 04:31:10 +00:00
|
|
|
|
|
|
|
# Don't install /lib/udev/rules.d/*-biosdevname.rules
|
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
|
|
|
|
configureFlags = [ "--sbindir=\${out}/bin" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-05-13 04:31:10 +00:00
|
|
|
description = "Udev helper for naming devices per BIOS names";
|
|
|
|
license = licenses.gpl2;
|
2017-06-11 01:37:24 +00:00
|
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
2014-05-13 04:31:10 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|