aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorTom Bereknyei <tomberek@gmail.com>2022-01-28 09:56:58 -0500
committerTom Bereknyei <tomberek@gmail.com>2022-01-28 09:56:58 -0500
commit4ebc50d92e65e7fd9cf30fb84a0c39a13475a31f (patch)
tree822f495936f78465dc762f0ff57e104bd8692ff3 /src/nix
parentdc85e20684c6763330d35f7855e8ac741dfdfa23 (diff)
bundler: revert default behavior to use defaultApp
Bundlers are now responsible for correctly handling their inputs which are no longer constrained to be (Drv->Drv)->Drv->Drv, but can be of type (attrset->Drv)->attrset->Drv.
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/bundle.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/nix/bundle.cc b/src/nix/bundle.cc
index 3d953ebc0..113ceca33 100644
--- a/src/nix/bundle.cc
+++ b/src/nix/bundle.cc
@@ -51,7 +51,9 @@ struct CmdBundle : InstallableCommand
Strings getDefaultFlakeAttrPaths() override
{
- Strings res{"defaultPackage." + settings.thisSystem.get()};
+ Strings res{
+ "defaultApp." + settings.thisSystem.get()
+ };
for (auto & s : SourceExprCommand::getDefaultFlakeAttrPaths())
res.push_back(s);
return res;
@@ -59,7 +61,10 @@ struct CmdBundle : InstallableCommand
Strings getDefaultFlakeAttrPathPrefixes() override
{
- Strings res{"packages." + settings.thisSystem.get() + "."};
+ Strings res{
+ "apps." + settings.thisSystem.get() + "."
+
+ };
for (auto & s : SourceExprCommand::getDefaultFlakeAttrPathPrefixes())
res.push_back(s);
return res;
@@ -73,7 +78,7 @@ struct CmdBundle : InstallableCommand
const flake::LockFlags lockFlagsProg{ .writeLockFile = false };
auto programInstallable = InstallableFlake(this,
evalState, std::move(progFlakeRef),
- Strings{progName == "" ? "defaultPackage" : progName},
+ Strings{progName == "" ? "defaultApp" : progName},
Strings(this->getDefaultFlakeAttrPathPrefixes()),
lockFlagsProg);
auto val = programInstallable.toValue(*evalState).first;