2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2020-01-02 14:17:09 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "corerad";
|
2020-03-04 00:23:53 +00:00
|
|
|
version = "0.2.2";
|
2020-01-02 14:17:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "corerad";
|
|
|
|
rev = "v${version}";
|
2020-03-04 00:23:53 +00:00
|
|
|
sha256 = "0nxrksv98mxs5spykhzpydwjzii5cc6gk8az7irs3fdi4jx6pq1w";
|
2020-01-02 14:17:09 +00:00
|
|
|
};
|
|
|
|
|
2020-02-07 02:57:33 +00:00
|
|
|
modSha256 = "0vbbpndqwwz1mc59j7liaayxaj53cs8s3javgj3pvhkn4vp65p7c";
|
2020-01-02 14:17:09 +00:00
|
|
|
|
2020-03-04 00:23:53 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1583280117
|
|
|
|
-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 ];
|
|
|
|
};
|
|
|
|
}
|