3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/mstpd/default.nix

38 lines
923 B
Nix
Raw Normal View History

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