1 { lib, stdenv, fetchFromGitHub, fetchpatch, bison, flex }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1xk355dm5pfjil1j4m724vkdnc178lv6hi6s1g0xgpd59avbx90j";
15 # remove if there's ever an upstream release that incorporates
16 # https://github.com/OLSR/olsrd/pull/87
18 url = "https://raw.githubusercontent.com/openwrt-routing/packages/b3897386771890ba1b15f672c2fed58630beedef/olsrd/patches/011-bison.patch";
19 sha256 = "04cl4b8dpr1yjs7wa94jcszmkdzpnrn719a5m9nhm7lvfrn1rzd0";
23 buildInputs = [ bison flex ];
26 makeFlags="prefix=$out ETCDIR=$out/etc"
30 description = "Adhoc wireless mesh routing daemon";
31 license = lib.licenses.bsd3;
32 homepage = "http://olsr.org/";
34 platforms = with lib.platforms; linux;