nixpkgs/pkgs/os-specific/linux/mstpd/default.nix

30 lines
656 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, autoreconfHook }:
2015-01-07 21:37:59 +00:00
2019-05-05 09:24:34 +00:00
stdenv.mkDerivation rec {
pname = "mstpd";
version = "0.0.7";
2015-01-07 21:37:59 +00:00
src = fetchFromGitHub {
2019-05-05 09:24:34 +00:00
owner = pname;
repo = pname;
rev = version;
sha256 = "01majib6d1rixngf8c8vcrj1akf8nsqpxhdfdxxi2xwg23vx8f1a";
2015-01-07 21:37:59 +00:00
};
nativeBuildInputs = [ autoreconfHook ];
2015-01-07 21:37:59 +00:00
2019-05-05 09:24:34 +00: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 09:24:34 +00:00
homepage = "https://github.com/mstpd/mstpd";
2015-01-07 21:37:59 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
};
}