assh: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-31 00:49:41 +01:00
parent 8e5217453a
commit bd2168620a
+5 -5
View File
@@ -8,14 +8,14 @@
ps,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "assh";
version = "2.17.0";
src = fetchFromGitHub {
repo = "advanced-ssh-config";
owner = "moul";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-X5UWQe4c+QudmXKjFKafivO/OvdBNzyutrL+CUK0olg=";
};
@@ -24,7 +24,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X moul.io/assh/v2/pkg/version.Version=${version}"
"-X=moul.io/assh/v2/pkg/version.Version=${finalAttrs.version}"
];
nativeBuildInputs = [ makeWrapper ];
@@ -44,9 +44,9 @@ buildGoModule rec {
meta = {
description = "Advanced SSH config - Regex, aliases, gateways, includes and dynamic hosts";
homepage = "https://github.com/moul/assh";
changelog = "https://github.com/moul/assh/releases/tag/v${version}";
changelog = "https://github.com/moul/assh/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ ];
platforms = with lib.platforms; linux ++ darwin;
};
}
})