-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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: Make haskellPackages.callPackage overridable #90271
base: haskell-updates
Are you sure you want to change the base?
Conversation
That looks very reasonable to me. |
d99e3b7
to
598cf2f
Compare
f49dc2e
to
fcc9392
Compare
6cd82d7
to
692715d
Compare
8a7eb3e
to
ed16234
Compare
bd1911c
to
10ec99b
Compare
659ff55
to
d0541e2
Compare
be2e4fb
to
1436509
Compare
d060d81
to
c90c206
Compare
1f4b126
to
ed41afe
Compare
@Aver1y I apologize for basically missing this PR and #88841. Are you still interested in working on these two PRs? When reviewing this sort of stuff, it is somewhat hard to know what the exact effect of using things like Would you also be willing to come up some sort of example that only works when the changes from these two PRs are applied? |
2c7ad11
to
0e5f7e8
Compare
7b89288
to
d8d2e94
Compare
ba32886
to
c9e5a3f
Compare
a0a57d7
to
952ebcf
Compare
4c606a9
to
3ae580b
Compare
56fa6fc
to
f3cb253
Compare
I marked this as stale due to inactivity. → More info |
Motivation for this change
Currently nh2/static-haskell-nix overrides every executable package to add the required options for static compilation. This works, but it would be much nicer to just override
callPackage
to add these options, so that users can just usecallPackage
,callCabal2nix
anddevelopPackage
from the resulting package set and have them work as expected (i.e. generate statically linked executables).Previously
self.callPackage
was used in some places andcallPackage
in others. This patch makes it so thatself.callPackage
is used consistently, so we can overridecallPackage
and have the overriden version be used everywhere.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)