-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unpack-*
derivations end up in closure
#311
Comments
Can't repro in comma with diff --git a/flake.nix b/flake.nix
index ae15927..e3ee583 100644
--- a/flake.nix
+++ b/flake.nix
@@ -24,7 +24,8 @@
naersk-lib.buildPackage {
pname = "comma";
root = ./.;
- nativeBuildInputs = with pkgs; [ makeWrapper ];
+ nativeBuildInputs = with pkgs; [ makeWrapper mold-wrapped ];
+ NIX_CFLAGS_LINK = " -fuse-ld=mold";
overrideMain = _: {
postInstall = ''
wrapProgram $out/bin/comma \
You can use nix-tree and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've got a relatively small package but when I build a docker image for it, all of the
unpack-*
derivations end up in the image and really bloat it. Is this expected behavior?I have a pretty typical setup; single-crate, but I'm using
[pkg-config mold clang]
as dependencies for build speed and manually setting the build target.The text was updated successfully, but these errors were encountered: