29 lines
787 B
Nix
29 lines
787 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "corerad";
|
|
version = "0.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdlayher";
|
|
repo = "corerad";
|
|
rev = "v${version}";
|
|
sha256 = "1r9kvz1ylrnfc7y5c4knqhx6xngh1p8j1axb8bd7h7p51c4i7jz2";
|
|
};
|
|
|
|
modSha256 = "00xisa4l90f0digb1jfd2w616r080m7yp01y1rb83r8k147z5d2v";
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1589133047
|
|
-X github.com/mdlayher/corerad/internal/build.linkVersion=v${version}
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|