2019-11-02 18:35:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
|
2015-01-07 22:37:59 +01:00
|
|
|
|
2019-05-05 11:24:34 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mstpd";
|
2019-11-02 18:34:25 +01:00
|
|
|
version = "0.0.8";
|
2015-01-07 22:37:59 +01:00
|
|
|
|
2017-12-04 17:39:44 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-05-05 11:24:34 +02:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-02 18:34:25 +01:00
|
|
|
sha256 = "1xkfydxljdnj49p5r3mirk4k146428b6imfc9bkfps9yjn64mkgb";
|
2015-01-07 22:37:59 +01:00
|
|
|
};
|
|
|
|
|
2019-11-02 18:35:09 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-strncpy-gcc9.patch";
|
|
|
|
url = "https://github.com/mstpd/mstpd/commit/d27d7e93485d881d8ff3a7f85309b545edbe1fc6.patch";
|
|
|
|
sha256 = "19456daih8l3y6m9kphjr7pj7slrqzbj6yacnlgznpxyd8y4d86y";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-12-04 17:39:44 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2015-01-07 22:37:59 +01:00
|
|
|
|
2019-05-05 11:24:34 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--prefix=$(out)"
|
|
|
|
"--sysconfdir=$(out)/etc"
|
|
|
|
"--sbindir=$(out)/sbin"
|
|
|
|
"--libexecdir=$(out)/lib"
|
|
|
|
];
|
2015-01-07 22:37:59 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Multiple Spanning Tree Protocol daemon";
|
2019-05-05 11:24:34 +02:00
|
|
|
homepage = "https://github.com/mstpd/mstpd";
|
2015-01-07 22:37:59 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|