-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Provide middle-ground overlay between pkgsMusl and pkgsStatic #61575
Copy link
Copy link
Open
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: architectureRelating to code and API architecture of NixpkgsRelating to code and API architecture of Nixpkgs6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on6.topic: muslRunning or building packages with musl libcRunning or building packages with musl libc6.topic: staticStatic builds (e.g. pkgsStatic)Static builds (e.g. pkgsStatic)
Metadata
Metadata
Assignees
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: architectureRelating to code and API architecture of NixpkgsRelating to code and API architecture of Nixpkgs6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on6.topic: muslRunning or building packages with musl libcRunning or building packages with musl libc6.topic: staticStatic builds (e.g. pkgsStatic)Static builds (e.g. pkgsStatic)
Fields
Give feedbackNo fields configured for issues without a type.
Issue description
For my work on static-haskell-nix I need an overlay that has both
.sofiles and.afiles.This is because I need
.as for linking Haskell exes statically, but.sofiles for executing TemplateHaskell.Right now
pkgsStaticnot only adds.afiles, but also disables.sofiles:makeStaticBinariesandmakeStaticLibrariesset--disable-sharedstatic.nixuses thosestatic.nixdisables shared Haskell libs that TH needsProposal
I think we should have the following stack of overlays:
pkgsMuslis what it is now: All packages using musl libcpkgsStaticshould be the one that has.afiles added to all libraries (in addition to.sofiles), and all binaries (including Haskell ones) linked statically where possiblepkgsStaticOnlyshould be whatpkgsStaticis now: Having only static libraries and binaries, getting rid of.sofiles.CC @matthewbauer @Ericson2314 @dtzWill @nmattia