corerad: 1.3.0 -> 1.3.1, refactors (#347280)

This commit is contained in:
Fabián Heredia Montiel 2024-10-13 13:07:41 -06:00 committed by GitHub
commit b70f5d7d8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 9 deletions

View File

@ -1,17 +1,23 @@
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
{
lib,
buildGoModule,
fetchFromGitHub,
nixosTests,
gitUpdater,
}:
buildGoModule rec {
pname = "corerad";
version = "1.3.0";
version = "1.3.1";
src = fetchFromGitHub {
owner = "mdlayher";
repo = "corerad";
rev = "v${version}";
hash = "sha256-vIKmE9Lq8We7BTMUHIgnOU370ZnNW7YG75WALWdG+4A=";
hash = "sha256-tVK4chDV26vpuTaqVWe498j8ijZN2OOhe97LLE+xK9Y=";
};
vendorHash = "sha256-dsqFleXpL8yAcdigqxJsk/Sxvp9OTqbGK3xDEiHkM8A=";
vendorHash = "sha256-cmfRN7mU99TBtYmCsuHzliYqdfUHzDOFvKbnTZJqhLg=";
# Since the tarball pulled from GitHub doesn't contain git tag information,
# we fetch the expected tag's timestamp from a file in the root of the
@ -21,15 +27,21 @@ buildGoModule rec {
ldflags+=" -X github.com/mdlayher/corerad/internal/build.linkTimestamp=$(<.gittagtime)"
'';
passthru.tests = {
inherit (nixosTests) corerad;
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
tests = {
inherit (nixosTests) corerad;
};
};
meta = with lib; {
homepage = "https://github.com/mdlayher/corerad";
description = "Extensible and observable IPv6 NDP RA daemon";
license = licenses.asl20;
maintainers = with maintainers; [ mdlayher jmbaur ];
maintainers = with maintainers; [
mdlayher
jmbaur
];
platforms = platforms.linux;
mainProgram = "corerad";
};

View File

@ -25492,8 +25492,6 @@ with pkgs;
coredns = callPackage ../servers/dns/coredns { };
corerad = callPackage ../tools/networking/corerad { };
cpufrequtils = callPackage ../os-specific/linux/cpufrequtils { };
cpupower-gui = python3Packages.callPackage ../os-specific/linux/cpupower-gui {