Unverified Commit c9f9df2f authored by Robert Hensing's avatar Robert Hensing Committed by GitHub
Browse files

Merge pull request #245038 from R-VdP/fix_nix_channel

 nixos/nix-channel: only try to remove the nix-channel binary if it exists
parents 27112e18 b825f65c
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ in
      '';

    environment.extraSetup = mkIf (!cfg.channel.enable) ''
      rm $out/bin/nix-channel
      rm --force $out/bin/nix-channel
    '';

    # NIX_PATH has a non-empty default according to Nix docs, so we don't unset