9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
29 lines
872 B
Nix
29 lines
872 B
Nix
{ lib, stdenv, fetchurl, pkg-config, 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 = [ pkg-config ];
|
|
buildInputs = [ gpsd libcap libnl ];
|
|
|
|
preBuild = ''
|
|
makeFlags="PREFIX=$out PKG_CONFIG=${pkg-config}/bin/${pkg-config.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 = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [ fpletz ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|