diff options
-rw-r--r-- | pkgs/os-specific/linux/libnl/default.nix | 20 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libnl/default.nix b/pkgs/os-specific/linux/libnl/default.nix new file mode 100644 index 0000000000000..cbe938d2ee411 --- /dev/null +++ b/pkgs/os-specific/linux/libnl/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl, bison, flex}: + +stdenv.mkDerivation rec { + name = "libnl-2.0"; + + src = fetchurl { + url = "${meta.homepage}files/${name}.tar.gz"; + sha256 = "173sr25xpsakdvjcg62790v6kwcgxj5r0js2lx6hg89w7n8dqh2s"; + }; + + buildInputs = [ bison flex ]; + postConfigure = "type -tp flex"; + + meta = { + homepage = "http://www.infradead.org/~tgr/libnl/"; + description = "Linux NetLink interface library"; + maintainers = [ stdenv.lib.maintainers.urkud ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1d75a5c4adc87..1a33bce201361 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4577,6 +4577,11 @@ let libcroup = callPackage ../os-specific/linux/libcg { }; + libnl = callPackage ../os-specific/linux/libnl { + flex = flex2535; + bison = bison24; + }; + linuxHeaders = linuxHeaders_2_6_28; linuxHeaders26Cross = forceBuildDrv (import ../os-specific/linux/kernel-headers/2.6.32.nix { |