Skip to content

Commit

Permalink
fish: use finalAttrs
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vdp committed Dec 22, 2024
1 parent 1c6e8de commit 50860a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/shells/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ let
end # fenv
'';

fish = stdenv.mkDerivation rec {
fish = stdenv.mkDerivation (finalAttrs: {
pname = "fish";
version = "4.0b1";

Expand All @@ -159,12 +159,12 @@ let
# the shell's actual version (and what it displays when running `fish
# --version`), as well as the local documentation for all builtins (and
# maybe other things).
url = "https://github.com/fish-shell/fish-shell/releases/download/${version}/${pname}-${version}.tar.xz";
url = "https://github.com/fish-shell/fish-shell/releases/download/${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
hash = "sha256-U0M04Q+FciIU6dr/gqV8w1ASNVI/FvjxMcI0Tk7Jjac=";
};

cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
inherit (finalAttrs) src;
hash = "sha256-jTVZKzX/Uy2RtyMbeQmatLLrOO+5S5jXrYKMGXNMcV4=";
};

Expand Down Expand Up @@ -429,6 +429,6 @@ let
};
updateScript = nix-update-script { };
};
};
});
in
fish

0 comments on commit 50860a6

Please sign in to comment.