From bbbfbd3276ad1f2be3a1f485599111b4ab1bbef3 Mon Sep 17 00:00:00 2001 From: HigherOrderLogic <73709188+HigherOrderLogic@users.noreply.github.com> Date: Sun, 19 Jul 2026 18:44:40 +0000 Subject: [PATCH 1/2] babelfish: modernize --- pkgs/shells/fish/babelfish.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/shells/fish/babelfish.nix b/pkgs/shells/fish/babelfish.nix index 368bdee4b4ab..3c36a8dc40c7 100644 --- a/pkgs/shells/fish/babelfish.nix +++ b/pkgs/shells/fish/babelfish.nix @@ -3,14 +3,14 @@ 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="; }; @@ -26,4 +26,4 @@ buildGoModule rec { kevingriffin ]; }; -} +}) From 49667fcad67aa1293bd530e1714f464c1bb6d36c Mon Sep 17 00:00:00 2001 From: HigherOrderLogic <73709188+HigherOrderLogic@users.noreply.github.com> Date: Sun, 19 Jul 2026 18:44:59 +0000 Subject: [PATCH 2/2] babelfish: use `__structuredAttrs` --- pkgs/shells/fish/babelfish.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/shells/fish/babelfish.nix b/pkgs/shells/fish/babelfish.nix index 3c36a8dc40c7..640c45e9e223 100644 --- a/pkgs/shells/fish/babelfish.nix +++ b/pkgs/shells/fish/babelfish.nix @@ -16,6 +16,8 @@ buildGoModule (finalAttrs: { vendorHash = "sha256-HY9ejLfT6gj3vUMSzbNZ4QlpB+liigTtNDBNWCy8X38="; + __structuredAttrs = true; + meta = { description = "Translate bash scripts to fish"; mainProgram = "babelfish";