2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gpsd, libcap, libnl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let cfg = import ./version.nix; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alfred";
|
|
|
|
inherit (cfg) version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.open-mesh.org/batman/releases/batman-adv-${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = cfg.sha256.${pname};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ gpsd libcap libnl ];
|
|
|
|
|
|
|
|
preBuild = ''
|
2023-07-15 17:15:38 +00:00
|
|
|
makeFlags="PREFIX=$out"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://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, information distribution tool";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ fpletz ];
|
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|