From 5fb0953680692ee3e256cd31e6e53b807bdf83a7 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Tue, 7 Jun 2011 21:50:42 +0000 Subject: [PATCH] Add libnl-3.0 svn path=/nixpkgs/trunk/; revision=27385 --- pkgs/os-specific/linux/libnl/default.nix | 5 ++--- pkgs/os-specific/linux/libnl/v2.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 pkgs/os-specific/linux/libnl/v2.nix diff --git a/pkgs/os-specific/linux/libnl/default.nix b/pkgs/os-specific/linux/libnl/default.nix index cbe938d2ee41..35f05e9d0092 100644 --- a/pkgs/os-specific/linux/libnl/default.nix +++ b/pkgs/os-specific/linux/libnl/default.nix @@ -1,15 +1,14 @@ {stdenv, fetchurl, bison, flex}: stdenv.mkDerivation rec { - name = "libnl-2.0"; + name = "libnl-3.0"; src = fetchurl { url = "${meta.homepage}files/${name}.tar.gz"; - sha256 = "173sr25xpsakdvjcg62790v6kwcgxj5r0js2lx6hg89w7n8dqh2s"; + sha256 = "1vac10m3w0m5lsypjcrhs2dzwng82nkbzqz8g8kyzkxb3qz5ql3s"; }; buildInputs = [ bison flex ]; - postConfigure = "type -tp flex"; meta = { homepage = "http://www.infradead.org/~tgr/libnl/"; diff --git a/pkgs/os-specific/linux/libnl/v2.nix b/pkgs/os-specific/linux/libnl/v2.nix new file mode 100644 index 000000000000..cbe938d2ee41 --- /dev/null +++ b/pkgs/os-specific/linux/libnl/v2.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 41f24f4d6283..800a7defa770 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4990,6 +4990,8 @@ let libnl = callPackage ../os-specific/linux/libnl { }; + libnl2 = callPackage ../os-specific/linux/libnl/v2.nix { }; + libnl1 = callPackage ../os-specific/linux/libnl/v1.nix { }; linuxHeaders = linuxHeaders_2_6_32;