mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
30 lines
761 B
Nix
30 lines
761 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, pciutils }:
|
|
|
|
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" ];
|
|
|
|
meta = with lib; {
|
|
description = "Udev helper for naming devices per BIOS names";
|
|
license = licenses.gpl2Only;
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
|
maintainers = [ ];
|
|
mainProgram = "biosdevname";
|
|
};
|
|
}
|