Skip to content

Commit

Permalink
Add a recursive output
Browse files Browse the repository at this point in the history
  • Loading branch information
enobayram committed Nov 14, 2023
1 parent c5a56ac commit 802e3ad
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 47 deletions.
91 changes: 47 additions & 44 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
description = "Chainweb Mining Client";
inputs = {
hs-nix-infra.url = "github:kadena-io/hs-nix-infra";
hs-nix-infra.url = "github:kadena-io/hs-nix-infra/enis/metadata-experiments";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, hs-nix-infra, flake-utils, }:
Expand Down Expand Up @@ -32,9 +32,18 @@
})
];
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
flake = pkgs.chainweb-mining-client.flake {};
in flake // {
project = pkgs.chainweb-mining-client;
flake = project.flake {};
in {
# Built by `nix build .`
packages.default = flake.packages."chainweb-mining-client:exe:chainweb-mining-client";
packages.recursive = with hs-nix-infra.lib.recursive system;
wrapRecursiveWithMeta "chainweb-mining-client" "${wrapFlake self}.default";

devShell = flake.devShell;

# Other flake outputs provided by haskellNix can be accessed through
# this project output
inherit project;
});
}

0 comments on commit 802e3ad

Please sign in to comment.