lksdjklads
This commit is contained in:
@@ -52,6 +52,10 @@
|
||||
nixos-nspawn.url = "github:tfc/nspawn-nixos";
|
||||
nixos-nspawn.flake = false; # we don't use it /shrug
|
||||
|
||||
# https://github.com/nix-community/nix-unit
|
||||
/* nix-unit.url = "github:nix-community/nix-unit"; */
|
||||
/* nix-unit.inputs.nixpkgs.follows = "nixpkgs-edge"; */
|
||||
|
||||
# https://github.com/wamserma/flake-programs-sqlite
|
||||
#flake-programs-sqlite-2311.url = "github:wamserma/flake-programs-sqlite";
|
||||
#flake-programs-sqlite-2311.inputs.nixpkgs.follows = "nixpkgs-2311";
|
||||
@@ -441,5 +445,30 @@
|
||||
remoteenv-fhs = mkShell { inheritFrom = [ remoteenv ]; } [ system-manager ];
|
||||
});
|
||||
|
||||
/*
|
||||
checks = forAllSystems ({ pkgs, inputs, system }: {
|
||||
unitTests = pkgs.runCommand "tests" {
|
||||
nativeBuildInputs = [ inputs.nix-unit.packages.${system}.default ];
|
||||
} ''
|
||||
export HOME="$(realpath .)"
|
||||
# The nix derivation must be able to find all used inputs in the nix-store because it cannot download it during buildTime.
|
||||
nix-unit --eval-store "$HOME" \
|
||||
--extra-experimental-features flakes \
|
||||
--override-input nixpkgs ${inputs.nixpkgs} \
|
||||
--flake ${self}#unitTests
|
||||
touch $out
|
||||
'';
|
||||
});
|
||||
|
||||
unitTests = let
|
||||
doesEval = x: {
|
||||
expr = (builtins.tryEval x).success;
|
||||
expected = true;
|
||||
};
|
||||
in {
|
||||
# https://nix-community.github.io/nix-unit/
|
||||
};
|
||||
*/
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user