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:
parent
dc85e20684
commit
4ebc50d92e
2 changed files with 16 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue