2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, pciutils }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "biosdevname";
|
|
|
|
version = "0.7.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dell";
|
|
|
|
repo = "biosdevname";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "19wbb79x9h79k55sgd4dylvdbhhrvfaiaknbw9s1wvfmirkxa1dz";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib pciutils ];
|
|
|
|
|
|
|
|
# Don't install /lib/udev/rules.d/*-biosdevname.rules
|
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
|
|
|
|
configureFlags = [ "--sbindir=\${out}/bin" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Udev helper for naming devices per BIOS names";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|