flakes/overlays/netbird/default.nix
Chinmay D. Pai 57ced606da
chore: set buildGoModule to go-1.23 for netbird
New netbird version requires go-1.23, and the patch to make
buildGoModules default to 1.23 is not yet in unstable

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-23 11:38:09 +05:30

27 lines
701 B
Nix

_: _self: super: let
version = "0.29.4";
in {
netbird = super.netbird.override {
buildGo123Module = args:
super.buildGo123Module (
args
// {
inherit version;
src = super.fetchFromGitHub {
owner = "netbirdio";
repo = "netbird";
rev = "v${version}";
hash = "sha256-W71CE83r/RcPdBjzfT+FSh72UcKcTmIuagkrC1eaeNk=";
};
vendorHash = "sha256-CD34U+Z8bUKN0Z4nxIVC+mYDp71Q8q1bmUypRDGgb3U=";
ldflags = [
"-s"
"-w"
"-X github.com/netbirdio/netbird/version.version=${version}"
"-X main.builtBy=nix"
];
}
);
};
}