babelfish: modernize, use __structuredAttrs (#543585)

This commit is contained in:
Sandro
2026-07-20 10:55:33 +00:00
committed by GitHub

View File

@@ -3,19 +3,21 @@
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "babelfish";
version = "1.2.1";
src = fetchFromGitHub {
owner = "bouk";
repo = "babelfish";
rev = "v${version}";
tag = "v${finalAttrs.version}";
sha256 = "sha256-/rWX77n9wqWxkHG7gVOinCJ6ahuEfbAcGijC1oAxrno=";
};
vendorHash = "sha256-HY9ejLfT6gj3vUMSzbNZ4QlpB+liigTtNDBNWCy8X38=";
__structuredAttrs = true;
meta = {
description = "Translate bash scripts to fish";
mainProgram = "babelfish";
@@ -26,4 +28,4 @@ buildGoModule rec {
kevingriffin
];
};
}
})