From b7254760ccedc8fc81a21b4e707c628556df1f6c Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 7 Nov 2023 21:39:13 -0500 Subject: initial commit --- test/module/flake.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 test/module/flake.nix (limited to 'test/module/flake.nix') 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; + }; + }; + }; +} -- cgit v1.2.3