Unverified Commit de383830 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

nixos-rebuild: Fix repl with channels (#332705)

parents cbebe9f3 a14312cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -588,7 +588,7 @@ if [ "$action" = repl ]; then
    if [[ -z $buildingAttribute ]]; then
        exec nix repl --file $buildFile $attr "${extraBuildFlags[@]}"
    elif [[ -z $flake ]]; then
        exec nix repl '<nixpkgs/nixos>' "${extraBuildFlags[@]}"
        exec nix repl --file '<nixpkgs/nixos>' "${extraBuildFlags[@]}"
    else
        if [[ -n "${lockFlags[0]}" ]]; then
            # nix repl itself does not support locking flags