Any way to minimize 8GB transitive closure size of haskell-template? #100
ParetoOptimalDev
started this conversation in
General
Replies: 1 comment 1 reply
-
But with, diff --git a/flake.nix b/flake.nix
index e50e065..6f626a0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -90,7 +90,7 @@
};
# Default package.
- packages.default = self'.packages.haskell-template;
+ packages.default = pkgs.haskell.lib.justStaticExecutables self'.packages.haskell-template;
# Default shell.
devShells.default = pkgs.mkShell { we get:
See https://haskell.flake.page/docker#size Perhaps the documentation can be improved to explain this in the non-docker context. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It looks like a ghc expression is about 2GB:
$ nix path-info -S nixpkgs#pkgs.haskell.compiler.ghc94 evaluating derivation 'flake:nixpkgs#pkgs.haskell.compiler.ghc94'/nix/store/jha99gc9172akfg326afb494gbrm6a1z-ghc-9.4.4 2773875752
Not sure what the rest is from or if it's feasible to be more thrifty. I bet with either of or both of ZFS and content addressed derivations it would be signifiantly less, but maybe this conversation is worth talking about.
Beta Was this translation helpful? Give feedback.
All reactions