Skip to content

Commit

Permalink
Fix bug introduced by 3e3dd03, which broke the non-flake use case
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewCroughan committed Apr 17, 2023
1 parent 5508874 commit 17abff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/nixos-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let

getFlakeOutput = path: lib.attrByPath path null flake.outputs;

mkShellSystem = config: import "${toString flake.inputs.nixpkgs or nixpkgs}/nixos/lib/eval-config.nix" {
mkShellSystem = config: import "${if !(flakeUri == null) then (toString flake.inputs.nixpkgs) else (toString nixpkgs)}/nixos/lib/eval-config.nix" {
inherit system;
modules = [
config
Expand Down

0 comments on commit 17abff7

Please sign in to comment.