Skip to content
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

Haskell/just static executables #23607

Merged
merged 2 commits into from Mar 8, 2017
Merged

Haskell/just static executables #23607

merged 2 commits into from Mar 8, 2017

Conversation

domenkozar
Copy link
Member

This code was getting copy-pasted in 4 places so I factored it out.

cc @peti @copumpkin @LnL7

@mention-bot
Copy link

@domenkozar, thanks for your PR! By analyzing the history of the files in this pull request, we identified @peti, @mboes and @shajra to be potential reviewers.

enableSharedExecutables = false;
isLibrary = false;
doHaddock = false;
postFixup = "rm -rf $out/lib $out/nix-support $out/share/doc";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really delete $out/share/doc here? What if the package includes manpages or other user-facing documentation? We can probably delete $out/share/doc/*-ghc-${ghc.version} though, but since haddocks are disabled, shouldn't that not exist already?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bennofs to be honest, I just used what was already there. I don't know the reasoning behind the doc removal, but we could probably check with existing code what is left behind it that folder isn't deleted. If haddock is removed, I don't see no harm deleting also the whole doc folder.

Copy link
Member

@LnL7 LnL7 Mar 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't manpages end up in $out/share/man? I wouldn't think there's anything important in doc for an executable.

@LnL7
Copy link
Member

LnL7 commented Mar 7, 2017

I assume this is related to #22810.

@domenkozar
Copy link
Member Author

@LnL7 nope, it's just reducing closure size.

enableSharedExecutables = false;
isLibrary = false;
doHaddock = false;
postFixup = "rm -rf $out/lib $out/nix-support $out/share/doc";
Copy link
Member

@LnL7 LnL7 Mar 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't manpages end up in $out/share/man? I wouldn't think there's anything important in doc for an executable.

@peti peti merged commit 722b129 into master Mar 8, 2017
@peti peti deleted the haskell/justStaticExecutables branch March 8, 2017 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants