diff options
Diffstat (limited to 'test/module')
| -rw-r--r-- | test/module/flake.lock | 63 | ||||
| -rw-r--r-- | test/module/flake.nix | 39 |
2 files changed, 102 insertions, 0 deletions
diff --git a/test/module/flake.lock b/test/module/flake.lock new file mode 100644 index 0000000..c2979aa --- /dev/null +++ b/test/module/flake.lock @@ -0,0 +1,63 @@ +{ + "nodes": { + "call-flake": { + "locked": { + "lastModified": 1699147280, + "narHash": "sha256-bmhE1TmrJG4ba93l9WQTLuYM53kwGQAjYHRvHOeuxWU=", + "owner": "divnix", + "repo": "call-flake", + "rev": "7d993ee93bd35a9e6574ec76d54b7d44087495ad", + "type": "github" + }, + "original": { + "owner": "divnix", + "repo": "call-flake", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1699099776, + "narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "parts": { + "inputs": { + "nixpkgs-lib": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1698882062, + "narHash": "sha256-HkhafUayIqxXyHH1X8d9RDl1M2CkFgZLjKD3MzabiEo=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "8c9fa2545007b49a5db5f650ae91f227672c3877", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "root": { + "inputs": { + "call-flake": "call-flake", + "nixpkgs": "nixpkgs", + "parts": "parts" + } + } + }, + "root": "root", + "version": 7 +} 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; + }; + }; + }; +} |
