1 { lib, stdenv, fetchurl, pkg-config, libnl }:
3 let cfg = import ./version.nix; in
5 stdenv.mkDerivation rec {
10 url = "https://downloads.open-mesh.org/batman/releases/batman-adv-${version}/${pname}-${version}.tar.gz";
11 sha256 = cfg.sha256.${pname};
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ libnl ];
18 makeFlags="PREFIX=$out"
22 homepage = "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki";
23 description = "B.A.T.M.A.N. routing protocol in a linux kernel module for layer 2, control tool";
24 mainProgram = "batctl";
25 license = lib.licenses.gpl2Only;
26 maintainers = with lib.maintainers; [ fpletz ];
27 platforms = with lib.platforms; linux;