2020-06-25 04:49:27 +02:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-01-02 15:17:09 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "corerad";
|
2020-06-25 04:08:20 +02:00
|
|
|
version = "0.2.7";
|
2020-01-02 15:17:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "corerad";
|
|
|
|
rev = "v${version}";
|
2020-06-25 04:08:20 +02:00
|
|
|
sha256 = "073hjbwra8ihh11ha5ajqq2r98cc5li4k0xs4p4s055q197zj3aa";
|
2020-01-02 15:17:09 +01:00
|
|
|
};
|
|
|
|
|
2020-06-25 04:08:20 +02:00
|
|
|
vendorSha256 = "19hp8xqr50v8h9vblihalvkb9ll8c0v4p071j9j1zkbjhnb07rca";
|
2020-01-02 15:17:09 +01:00
|
|
|
|
2020-03-04 01:23:53 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2020-06-25 04:08:20 +02:00
|
|
|
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1593050100
|
2020-03-04 01:23:53 +01:00
|
|
|
-X github.com/mdlayher/corerad/internal/build.linkVersion=v${version}
|
|
|
|
'';
|
|
|
|
|
2020-06-25 04:49:27 +02:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) corerad;
|
|
|
|
};
|
|
|
|
|
2020-01-02 15:17:09 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|