Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 808 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 libnl, 7}: 8 9let 10 cfg = import ./version.nix; 11in 12 13stdenv.mkDerivation rec { 14 pname = "batctl"; 15 inherit (cfg) version; 16 17 src = fetchurl { 18 url = "https://downloads.open-mesh.org/batman/releases/batman-adv-${version}/${pname}-${version}.tar.gz"; 19 sha256 = cfg.sha256.${pname}; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ libnl ]; 24 25 preBuild = '' 26 makeFlags="PREFIX=$out" 27 ''; 28 29 meta = { 30 homepage = "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki"; 31 description = "B.A.T.M.A.N. routing protocol in a linux kernel module for layer 2, control tool"; 32 mainProgram = "batctl"; 33 license = lib.licenses.gpl2Only; 34 maintainers = with lib.maintainers; [ fpletz ]; 35 platforms = with lib.platforms; linux; 36 }; 37}