2022-03-27 18:11:32 +03:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
lib,
|
|
|
|
coreutils,
|
2022-03-28 19:41:33 +03:00
|
|
|
git,
|
2022-03-27 18:11:32 +03:00
|
|
|
nix,
|
|
|
|
utils,
|
|
|
|
dream2nixWithExternals,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
l = lib // builtins;
|
|
|
|
examples = ../../examples;
|
|
|
|
in
|
|
|
|
utils.writePureShellScript
|
|
|
|
[
|
|
|
|
coreutils
|
2022-03-28 19:41:33 +03:00
|
|
|
git
|
2022-03-27 18:11:32 +03:00
|
|
|
nix
|
|
|
|
]
|
|
|
|
''
|
|
|
|
for dir in $(ls ${examples}); do
|
2022-03-28 19:20:44 +03:00
|
|
|
echo -e "\ntesting example for $dir"
|
2022-03-27 18:11:32 +03:00
|
|
|
mkdir tmp
|
|
|
|
cp ${examples}/$dir/* ./tmp/
|
|
|
|
chmod -R +w ./tmp
|
2022-03-28 09:52:35 +03:00
|
|
|
cd ./tmp
|
|
|
|
nix flake lock --override-input dream2nix ${../../.}
|
|
|
|
nix run .#resolveImpure
|
|
|
|
nix flake check
|
|
|
|
cd -
|
2022-03-27 18:11:32 +03:00
|
|
|
rm -r tmp
|
|
|
|
done
|
|
|
|
''
|