1
1
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:
David Arnold 2021-06-19 20:45:58 -05:00 committed by Parthiv Seetharaman
parent 5a16e8f6e8
commit e6c3497e79
23 changed files with 4 additions and 19 deletions

View File

@ -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;
};
};

View File

@ -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};
}