diff options
author | Tom Bereknyei <tomberek@gmail.com> | 2022-01-28 10:17:51 -0500 |
---|---|---|
committer | Tom Bereknyei <tomberek@gmail.com> | 2022-01-28 10:17:51 -0500 |
commit | 73e82ae954be991858053df2a6b7323fe3a82c36 (patch) | |
tree | e0995a7e9669a9ab73f6e13854ae1c6145227e69 /tests | |
parent | 4ebc50d92e65e7fd9cf30fb84a0c39a13475a31f (diff) |
bundler: tests various combinations of referring to installables
Diffstat (limited to 'tests')
-rw-r--r-- | tests/flake-bundler.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/flake-bundler.sh b/tests/flake-bundler.sh index 30e2fbd1d..699920f60 100644 --- a/tests/flake-bundler.sh +++ b/tests/flake-bundler.sh @@ -10,10 +10,11 @@ cd $TEST_HOME cat <<EOF > flake.nix { outputs = {self}: { - defaultBundler.$system = drv: + bundlers.$system.simple = drv: if drv?type && drv.type == "derivation" then drv else self.defaultPackage.$system; + defaultBundler.$system = self.bundlers.$system.simple; defaultPackage.$system = import ./simple.nix; defaultApp.$system = { type = "app"; @@ -24,7 +25,11 @@ cat <<EOF > flake.nix EOF nix build .# nix bundle --bundler .# .# -nix bundle --bundler .#defaultBundler.$system .#defaultPackage.$system +nix bundle --bundler .#defaultBundler.$system .#defaultPackage.$system +nix bundle --bundler .#bundlers.$system.simple .#defaultPackage.$system + +nix bundle --bundler .#defaultBundler.$system .#defaultApp.$system +nix bundle --bundler .#bundlers.$system.simple .#defaultApp.$system clearStore |