diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-05-09 11:50:22 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-05-10 11:29:45 -0400 |
commit | a93110ab19085eeda1b4244fef49d18f91a1d7b8 (patch) | |
tree | c199184cb8c31b16d14f9f8ca8659e4d772028d8 /src/libcmd/installable-flake.cc | |
parent | 53a1354acfa9a3d7e0a6c3914ff3c53115d4c452 (diff) |
Fix `nix print-dev-env` & `nix develop` with drv paths
Fixes #8309
This regression was because both `CmdDevelop` and `CmdPrintDevEnv` were
switched to be `InstallableValueCommand` subclasses, but actually
neither should have been.
The `nixpkgsFlakeRef` method should indeed not be on the base
installable class, because "flake refs" and "nixpkgs" are not
installable-wide notions, but that doesn't mean these commands should
only accept installable values.
Diffstat (limited to 'src/libcmd/installable-flake.cc')
-rw-r--r-- | src/libcmd/installable-flake.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/installable-flake.cc b/src/libcmd/installable-flake.cc index f0d322e6d..37e59cfdf 100644 --- a/src/libcmd/installable-flake.cc +++ b/src/libcmd/installable-flake.cc @@ -234,7 +234,7 @@ FlakeRef InstallableFlake::nixpkgsFlakeRef() const } } - return InstallableValue::nixpkgsFlakeRef(); + return defaultNixpkgsFlakeRef(); } } |