nixpkgs/pkgs/tools/networking/biosdevname/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
751 B
Nix
Raw Normal View History

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