2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2020-01-02 14:17:09 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "corerad";
|
2020-06-06 22:04:27 +01:00
|
|
|
version = "0.2.6";
|
2020-01-02 14:17:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "corerad";
|
|
|
|
rev = "v${version}";
|
2020-06-06 22:04:27 +01:00
|
|
|
sha256 = "16rwydvqkzi0jlgwpl3d4f8zd35y4lv4h5xa30ybqmwwp1k5ymf0";
|
2020-01-02 14:17:09 +00:00
|
|
|
};
|
|
|
|
|
2020-06-06 22:04:27 +01:00
|
|
|
vendorSha256 = "1431fvi9b0id3zhgkxhiampc5avvp998lncyd5l2gn5py3qz6sdl";
|
2020-01-02 14:17:09 +00:00
|
|
|
|
2020-03-04 00:23:53 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2020-06-06 22:04:27 +01:00
|
|
|
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1591474872
|
2020-03-04 00:23:53 +00:00
|
|
|
-X github.com/mdlayher/corerad/internal/build.linkVersion=v${version}
|
|
|
|
'';
|
|
|
|
|
2020-01-02 14:17:09 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/mdlayher/corerad";
|
|
|
|
description = "CoreRAD extensible and observable IPv6 NDP RA daemon";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
|
|
};
|
|
|
|
}
|