diff options
Diffstat (limited to 'test/module/flake.nix')
| -rw-r--r-- | test/module/flake.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/module/flake.nix b/test/module/flake.nix new file mode 100644 index 0000000..69aa4a2 --- /dev/null +++ b/test/module/flake.nix @@ -0,0 +1,39 @@ +{ + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + + call-flake.url = "github:divnix/call-flake"; + + parts = { + url = "github:hercules-ci/flake-parts"; + inputs.nixpkgs-lib.follows = "nixpkgs"; + }; + }; + + outputs = { + parts, + call-flake, + ... + } @ inputs: + parts.lib.mkFlake {inherit inputs;} { + imports = [(call-flake ../../.).flakeModule]; + + systems = [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; + + perSystem = {pkgs, ...}: { + devShells.default = pkgs.mkShell { + packages = [pkgs.hello]; + }; + + packages = { + inherit (pkgs) hello; + default = pkgs.hello; + }; + }; + }; +} |
