2020-10-04 21:58:11 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, bison, flex }:
|
2013-05-28 22:37:59 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "olsrd";
|
2020-10-04 21:58:11 +02:00
|
|
|
version = "0.9.8";
|
2013-05-28 22:37:59 +02:00
|
|
|
|
2020-10-04 21:58:11 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OLSR";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1xk355dm5pfjil1j4m724vkdnc178lv6hi6s1g0xgpd59avbx90j";
|
2013-05-28 22:37:59 +02:00
|
|
|
};
|
|
|
|
|
2020-10-04 21:58:11 +02:00
|
|
|
patches = [
|
|
|
|
# remove if there's ever an upstream release that incorporates
|
|
|
|
# https://github.com/OLSR/olsrd/pull/87
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/openwrt-routing/packages/b3897386771890ba1b15f672c2fed58630beedef/olsrd/patches/011-bison.patch";
|
|
|
|
sha256 = "04cl4b8dpr1yjs7wa94jcszmkdzpnrn719a5m9nhm7lvfrn1rzd0";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2013-05-28 22:37:59 +02:00
|
|
|
buildInputs = [ bison flex ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
makeFlags="prefix=$out ETCDIR=$out/etc"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An adhoc wireless mesh routing daemon";
|
2014-12-21 00:00:35 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://olsr.org/";
|
2013-05-28 22:37:59 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|