1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/networking/biosdevname/default.nix
2018-02-08 17:58:20 -08:00

29 lines
763 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pciutils }:
stdenv.mkDerivation rec {
name = "biosdevname-${version}";
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" ];
meta = with stdenv.lib; {
description = "Udev helper for naming devices per BIOS names";
license = licenses.gpl2;
platforms = ["x86_64-linux" "i686-linux"];
maintainers = with maintainers; [ cstrahan ];
};
}