2022-11-18 02:36:55 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
2022-11-18 23:20:59 +03:00
|
|
|
{
|
|
|
|
lib = import ./lib.nix;
|
|
|
|
}
|
|
|
|
// flake-utils.lib.eachDefaultSystem (system:
|
2022-11-18 02:36:55 +03:00
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
|
|
|
|
runTests = pkgs.writeShellScript "runTests" ''
|
|
|
|
nix eval --impure --expr 'import ./lib.test.nix {}'
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
{
|
|
|
|
apps.tests = {
|
|
|
|
type = "app";
|
|
|
|
program = toString runTests;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|