mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-23 17:20:31 +03:00
improve testing examples
This commit is contained in:
parent
489f1ab2c7
commit
5b97484a4f
@ -15,7 +15,7 @@
|
||||
config.projectRoot = ./.;
|
||||
};
|
||||
in
|
||||
dream2nix.makeFlakeOutputs {
|
||||
(dream2nix.makeFlakeOutputs {
|
||||
source = src;
|
||||
settings = [
|
||||
{
|
||||
@ -23,5 +23,8 @@
|
||||
translator = "cargo-lock";
|
||||
}
|
||||
];
|
||||
})
|
||||
// {
|
||||
checks = self.packages;
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user