Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 802 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 zlib, 7 pciutils, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "biosdevname"; 12 version = "0.7.3"; 13 14 src = fetchFromGitHub { 15 owner = "dell"; 16 repo = "biosdevname"; 17 rev = "v${version}"; 18 sha256 = "19wbb79x9h79k55sgd4dylvdbhhrvfaiaknbw9s1wvfmirkxa1dz"; 19 }; 20 21 nativeBuildInputs = [ autoreconfHook ]; 22 buildInputs = [ 23 zlib 24 pciutils 25 ]; 26 27 # Don't install /lib/udev/rules.d/*-biosdevname.rules 28 patches = [ ./makefile.patch ]; 29 30 configureFlags = [ "--sbindir=\${out}/bin" ]; 31 32 meta = with lib; { 33 description = "Udev helper for naming devices per BIOS names"; 34 license = licenses.gpl2Only; 35 platforms = [ 36 "x86_64-linux" 37 "i686-linux" 38 ]; 39 maintainers = [ ]; 40 mainProgram = "biosdevname"; 41 }; 42}