Skip to content

Commit

Permalink
Avoid merging the output with haskellNix flake
Browse files Browse the repository at this point in the history
Instead, expose its project object directly
  • Loading branch information
enobayram committed Nov 16, 2023
1 parent e237e86 commit 9408ae8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
})
];
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
flake = pkgs.kdaToolProject.flake {
project = pkgs.kdaToolProject;
flake = project.flake {
# This adds support for `nix build .#js-unknown-ghcjs:hello:exe:hello`
# crossPlatforms = p: [p.ghcjs];
};
Expand All @@ -37,7 +38,7 @@
default = flake.packages."kda-tool:exe:kda";
bundled = (pkgs.callPackage inputs.nix-exe-bundle {} default).overrideAttrs
(_: {inherit (default) version;});
in flake // {
in {
# Built by `nix build .`
packages = rec {
inherit default bundled;
Expand All @@ -50,5 +51,11 @@
echo works > $out
'';
};

inherit (flake) devShell;

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

0 comments on commit 9408ae8

Please sign in to comment.