forked from mirrors/nixpkgs
Merge pull request #99590 from risicle/ris-olsrd-0.9.8
olsrd: 0.9.6.1 -> 0.9.8, fix build
This commit is contained in:
commit
35c3e14e6c
|
@ -1,14 +1,25 @@
|
|||
{ stdenv, fetchurl, bison, flex }:
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, bison, flex }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "olsrd";
|
||||
version = "0.9.6.1";
|
||||
version = "0.9.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.olsr.org/releases/0.9/${pname}-${version}.tar.bz2";
|
||||
sha256 = "9cac290e9bff5fc7422110b9ccd972853f10962c962d2f31a63de9c6d1520612";
|
||||
src = fetchFromGitHub {
|
||||
owner = "OLSR";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1xk355dm5pfjil1j4m724vkdnc178lv6hi6s1g0xgpd59avbx90j";
|
||||
};
|
||||
|
||||
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";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ bison flex ];
|
||||
|
||||
preConfigure = ''
|
||||
|
|
Loading…
Reference in a new issue