improve testing examples

This commit is contained in:
DavHau 2022-03-28 13:52:35 +07:00
parent 489f1ab2c7
commit 5b97484a4f
2 changed files with 9 additions and 3 deletions

View File

@ -15,7 +15,7 @@
config.projectRoot = ./.;
};
in
dream2nix.makeFlakeOutputs {
(dream2nix.makeFlakeOutputs {
source = src;
settings = [
{
@ -23,5 +23,8 @@
translator = "cargo-lock";
}
];
})
// {
checks = self.packages;
};
}

View File

@ -20,8 +20,11 @@ in
mkdir tmp
cp ${examples}/$dir/* ./tmp/
chmod -R +w ./tmp
nix flake lock --override-input dream2nix ${../../.} ./tmp
nix flake check ./tmp
cd ./tmp
nix flake lock --override-input dream2nix ${../../.}
nix run .#resolveImpure
nix flake check
cd -
rm -r tmp
done
''