Skip to content

Commit

Permalink
expose the main package as static build with name static
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Jul 29, 2023
1 parent c310054 commit 5810fc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/output.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ let
hsLib = config.pkgs.haskell.lib;
};

withStatic = pkg: pkg // { static = config.pkgs.haskell.lib.justStaticExecutables pkg; };
staticDrv = config.pkgs.haskell.lib.justStaticExecutables;

withStatic = pkg: pkg // { static = staticDrv pkg; };

cross = ghc: name: let
mkCross = cname: cpkgs: withStatic cpkgs.hixPackages.${name};
Expand Down Expand Up @@ -35,6 +37,7 @@ let
in local // {
default = local.${config.main};
min = local.${config.main}.min;
static = staticDrv local.${config.main};
};

in {
Expand Down

0 comments on commit 5810fc5

Please sign in to comment.