mirror of
https://github.com/divnix/digga.git
synced 2024-12-23 16:11:51 +03:00
mv fullFlake -> example
This commit is contained in:
parent
5a16e8f6e8
commit
e6c3497e79
@ -30,6 +30,10 @@ let
|
||||
hostBuild = assert self.nixosConfigurations ? "com.example.myhost";
|
||||
self.nixosConfigurations.NixOS.config.system.build.toplevel;
|
||||
overlays-order = channels.nixos.pkgs.i-was-accessed-without-error;
|
||||
# At least check that those build.
|
||||
# They are usually tested against additional checks with
|
||||
nixosModules = self.nixosModules;
|
||||
|
||||
};
|
||||
};
|
||||
|
@ -1,18 +1,4 @@
|
||||
{ pkgs, lib }:
|
||||
let
|
||||
fullFlake = import ./fullFlake { inherit pkgs lib; };
|
||||
|
||||
mkOutputTest = output:
|
||||
let
|
||||
outputs = builtins.attrValues (fullFlake.${output}.${pkgs.system});
|
||||
in
|
||||
pkgs.runCommandNoCC "${output}-test"
|
||||
{
|
||||
buildInputs = outputs;
|
||||
} ''
|
||||
echo "${toString outputs}" > $out
|
||||
'';
|
||||
in
|
||||
{
|
||||
libTests = pkgs.runCommandNoCC "devos-lib-tests"
|
||||
{
|
||||
@ -40,10 +26,5 @@ in
|
||||
touch $out
|
||||
'';
|
||||
|
||||
checksTest = mkOutputTest "checks" // {
|
||||
# debug the fullFLake through repl at checks.<system>.checksTest.fullFlake
|
||||
inherit fullFlake;
|
||||
};
|
||||
|
||||
devShellTest = fullFlake.devShell.${pkgs.system};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user