mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-05 03:46:16 +02:00
7abcafcfea
Note: these were previously not actually called.
32 lines
862 B
Bash
32 lines
862 B
Bash
source common.sh
|
|
|
|
cp ../simple.nix ../simple.builder.sh ../config.nix $TEST_HOME
|
|
|
|
cd $TEST_HOME
|
|
|
|
cat <<EOF > flake.nix
|
|
{
|
|
outputs = {self}: {
|
|
bundlers.$system = rec {
|
|
simple = drv:
|
|
if drv?type && drv.type == "derivation"
|
|
then drv
|
|
else self.packages.$system.default;
|
|
default = simple;
|
|
};
|
|
packages.$system.default = import ./simple.nix;
|
|
apps.$system.default = {
|
|
type = "app";
|
|
program = "\${import ./simple.nix}/hello";
|
|
};
|
|
};
|
|
}
|
|
EOF
|
|
|
|
nix build .#
|
|
nix bundle --bundler .# .#
|
|
nix bundle --bundler .#bundlers.$system.default .#packages.$system.default
|
|
nix bundle --bundler .#bundlers.$system.simple .#packages.$system.default
|
|
|
|
nix bundle --bundler .#bundlers.$system.default .#apps.$system.default
|
|
nix bundle --bundler .#bundlers.$system.simple .#apps.$system.default
|