2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libdaemon, bison, flex, check }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "radvd";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "2.19";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.litech.org/radvd/dist/${pname}-${version}.tar.xz";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "0h722f17h7cra1sjgrxhrrvx54mm47fs039909yhbabigxch8kjn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config bison flex check ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libdaemon ];
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
# Needed for cross-compilation
|
|
|
|
makeFlags = [
|
|
|
|
"AR=${stdenv.cc.targetPrefix}ar"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.litech.org/radvd/";
|
|
|
|
description = "IPv6 Router Advertisement Daemon";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|