nixpkgs-suyu/pkgs/tools/networking/corerad/default.nix

29 lines
787 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "corerad";
2020-04-14 18:47:57 +02:00
version = "0.2.3";
src = fetchFromGitHub {
owner = "mdlayher";
repo = "corerad";
rev = "v${version}";
2020-04-14 18:47:57 +02:00
sha256 = "1594qrwrz4bc3iipm4aqb8l1zyi04pwmiz0vdlfn12qn1p7lad5p";
};
2020-04-14 18:47:57 +02:00
modSha256 = "1cfhxkvwzf7sn227y6h5h19f27a9ngmpnyqdlfba5km8axqn29vm";
2020-03-04 01:23:53 +01:00
buildFlagsArray = ''
-ldflags=
2020-04-14 18:47:57 +02:00
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1586881022
2020-03-04 01:23:53 +01:00
-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 ];
};
}