mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-23 00:13:02 +03:00
ac20d70957
An example for a dream2nix repo with multiple packages
17 lines
557 B
Nix
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;
|
|
}
|