Open
Description
Issue description
For my work on static-haskell-nix I need an overlay that has both .so
files and .a
files.
This is because I need .a
s for linking Haskell exes statically, but .so
files for executing TemplateHaskell.
Right now pkgsStatic
not only adds .a
files, but also disables .so
files:
makeStaticBinaries
andmakeStaticLibraries
set--disable-shared
static.nix
uses thosestatic.nix
disables shared Haskell libs that TH needs
Proposal
I think we should have the following stack of overlays:
pkgsMusl <- pkgsStatic <- pkgsStaticOnly
pkgsMusl
is what it is now: All packages using musl libcpkgsStatic
should be the one that has.a
files added to all libraries (in addition to.so
files), and all binaries (including Haskell ones) linked statically where possiblepkgsStaticOnly
should be whatpkgsStatic
is now: Having only static libraries and binaries, getting rid of.so
files.