summary refs log tree commit diff
path: root/pkgs/tools/networking/biosdevname/default.nix
blob: 86fe18e01583368803f19707c7a7a461760fd86b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{stdenv, fetchgit, automake, autoconf, zlib, pciutils}:
let
  version = "0.6.1";
in
stdenv.mkDerivation {
  name = "biosdevname-${version}";
  
  src = fetchgit {
    url = git://linux.dell.com/biosdevname.git;
    rev = "refs/tags/v${version}";
    sha256 = "11g2pziss0i65mr4y3mwjlcdgpygaxa06lr4q8plmrwl9cick1qa";
  };

  buildInputs = [
    automake
    autoconf
    zlib
    pciutils
  ];

  preConfigure = ''
    autoreconf -i
  '';

  # 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 = platforms.linux;
    maintainers = with maintainers; [ cstrahan ];
  };
}