mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
29 lines
884 B
Nix
29 lines
884 B
Nix
{ stdenv, fetchurl, pkgconfig, gpsd, libcap, libnl }:
|
|
|
|
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};
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ gpsd libcap libnl ];
|
|
|
|
preBuild = ''
|
|
makeFlags="PREFIX=$out PKG_CONFIG=${pkgconfig}/bin/${pkgconfig.targetPrefix}pkg-config"
|
|
'';
|
|
|
|
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";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
maintainers = with stdenv.lib.maintainers; [ fpletz ];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|