1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

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.
This commit is contained in:
Tom Bereknyei 2022-01-28 09:56:58 -05:00
parent dc85e20684
commit 4ebc50d92e
2 changed files with 16 additions and 4 deletions

View file

@ -10,8 +10,15 @@ cd $TEST_HOME
cat <<EOF > flake.nix
{
outputs = {self}: {
defaultBundler.$system = drv: drv;
defaultBundler.$system = drv:
if drv?type && drv.type == "derivation"
then drv
else self.defaultPackage.$system;
defaultPackage.$system = import ./simple.nix;
defaultApp.$system = {
type = "app";
program = "\${import ./simple.nix}/hello";
};
};
}
EOF