diff options
| author | seth <[email protected]> | 2023-11-07 21:39:13 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-07 21:47:01 -0500 |
| commit | b7254760ccedc8fc81a21b4e707c628556df1f6c (patch) | |
| tree | 8a1b17a663e86cb9625c2fceddf0010c2cb2554c /test/module/flake.nix | |
initial commit
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; + }; + }; + }; +} |
