From c25fe81c63aa7087410619a2ae980e536cb65bcd Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 25 Aug 2026 22:56:45 +0200 Subject: pkgs/fish-patched: Don't override `postPatch` This phase is actually _really_ important for the fish package, as it includes the code, so that fish sources the global env variables. --- pkgs/by-name/fi/fish-patched/package.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pkgs/by-name') diff --git a/pkgs/by-name/fi/fish-patched/package.nix b/pkgs/by-name/fi/fish-patched/package.nix index 9d4bac75..cb45af99 100644 --- a/pkgs/by-name/fi/fish-patched/package.nix +++ b/pkgs/by-name/fi/fish-patched/package.nix @@ -1,7 +1,6 @@ { fish, rustPlatform, - lib, }: let loadedRustPlatform = { inherit (rustPlatform) cargoSetupHook; @@ -20,10 +19,12 @@ in }).overrideAttrs (prev: { pname = "${prev.pname}-patched"; - postPatch = '' - rm Cargo.lock - cat ${./Cargo.lock} > Cargo.lock - ''; + postPatch = + (prev.postPatch or "") + + '' + rm Cargo.lock + cat ${./Cargo.lock} > Cargo.lock + ''; doCheck = false; -- cgit v1.3.1