dream2nix/ci.nix
DavHau ac20d70957 examples: add dream2nix-repo
An example for a dream2nix repo with multiple packages
2023-07-24 22:21:37 +02:00

17 lines
557 B
Nix

let
b = builtins;
flakeCompatSrc = b.fetchurl "https://raw.githubusercontent.com/edolstra/flake-compat/12c64ca55c1014cdc1b16ed5a804aa8576601ff2/default.nix";
flake = (import flakeCompatSrc {src = ./.;}).defaultNix;
pkgs = import flake.inputs.nixpkgs {};
recurseIntoAll = b.mapAttrs (name: val: pkgs.recurseIntoAttrs val);
dream2nix-repo = import ./examples/dream2nix-repo {
dream2nixSource = ./.;
};
in
recurseIntoAll {
inherit dream2nix-repo;
checks = flake.checks.x86_64-linux;
packages = flake.packages.x86_64-linux;
}