summary refs log tree commit diff
path: root/pkgs/os-specific/linux/libnl/v1.nix
blob: f3f7f3fa732c3ee846c328936eb780a6474b29cd (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
{stdenv, fetchurl, bison, flex}:

stdenv.mkDerivation rec {
  name = "libnl-1.1";

  src = fetchurl {
    url = "${meta.homepage}files/${name}.tar.gz";
    sha256 = "1hzd48z8h8abkclq90wb7cciynpg3pwgyd0gzb5g12ndnv7s9kim";
  };

  buildInputs = [ bison flex ];
  postConfigure = "type -tp flex";

  patches = [
    ./libnl-1.1-flags.patch
    ./libnl-1.1-glibc-2.8-ULONG_MAX.patch
    ./libnl-1.1-minor-leaks.patch
    ./libnl-1.1-vlan-header.patch
  ];

  meta = {
    homepage = "http://www.infradead.org/~tgr/libnl/";
    description = "Linux NetLink interface library";
    maintainers = [ stdenv.lib.maintainers.urkud ];
    platforms = stdenv.lib.platforms.linux;
  };
}