mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
1545229fa7
Uses inline x86 asm: https://nix-cache.s3.amazonaws.com/log/lqpnvr2xch5vv4zk2n0v4nlji8c88129-biosdevname-0.7.2.drv
29 lines
763 B
Nix
29 lines
763 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pciutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "biosdevname-${version}";
|
|
version = "0.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dell";
|
|
repo = "biosdevname";
|
|
rev = "v${version}";
|
|
sha256 = "183k6f9nayhai27y6nizf0sp9bj1kabykj66hcwdzllhrrh505sd";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|