From e1cb325f82d59f7fdf6404878f439cc1bcfaf231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 28 May 2013 23:02:22 +0200 Subject: [PATCH] Adding batctl, control for batman --- pkgs/os-specific/linux/batman-adv/batctl.nix | 25 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/os-specific/linux/batman-adv/batctl.nix diff --git a/pkgs/os-specific/linux/batman-adv/batctl.nix b/pkgs/os-specific/linux/batman-adv/batctl.nix new file mode 100644 index 000000000000..2ff9d214bbb4 --- /dev/null +++ b/pkgs/os-specific/linux/batman-adv/batctl.nix @@ -0,0 +1,25 @@ +{stdenv, fetchurl}: + +let + ver = "2013.2.0"; +in +stdenv.mkDerivation rec { + name = "batctl-${ver}"; + + src = fetchurl { + url = "http://downloads.open-mesh.org/batman/releases/batman-adv-${ver}/${name}.tar.gz"; + sha1 = "0ba6520c813c9dd2e59e6205e8ea2e60a0c85f52"; + }; + + preBuild = '' + makeFlags=PREFIX=$out + ''; + + meta = { + homepage = http://www.open-mesh.org/projects/batman-adv/wiki/Wiki; + description = "B.A.T.M.A.N. routing protocol in a linux kernel module for layer 2, control tool"; + license = "GPLv2"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9fafa1f72f2a..4a3082392d94 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5815,6 +5815,8 @@ let b43FirmwareCutter = callPackage ../os-specific/linux/firmware/b43-firmware-cutter { }; + batctl = callPackage ../os-specific/linux/batman-adv/batctl.nix { }; + bcm43xx = callPackage ../os-specific/linux/firmware/bcm43xx { }; bluez4 = callPackage ../os-specific/linux/bluez {