You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix more packages. workingStackageExecutables builds on top of nixos-23.05.
Only minimal patches are put on top of the `nixos-23.05` branch to
support more of Stackage. All have nixpkgs PRs.
nix-build --no-link survey/default.nix -A workingStackageExecutables | wc -l
368
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,12 @@ Until Stack 2.3, the official static build of `stack` itself was built using thi
104
104
The [`static-stack`](./static-stack) directory shows how Stack itself can be built statically with static-haskell-nix.
105
105
`stack` is a big package with many dependencies, demonstrating that it works also for large projects.
106
106
107
+
## Related important open issues
108
+
109
+
You can contribute to these to help static Haskell executables:
110
+
111
+
*https://github.com/haskell/cabal/issues/8455
112
+
107
113
## FAQ
108
114
109
115
* I get `cannot find section .dynamic`. Is this an error?
@@ -116,6 +122,13 @@ The [`static-stack`](./static-stack) directory shows how Stack itself can be bui
116
122
then `/nix/store/dax3wjbjfrcwj6r3mafxj5fx6wcg5zbp-stack-2.3.0.1` is your final output _store path_ whose `/bin` directory contains your static executable.
117
123
* I get `stack2nix: user error (No such package mypackage-1.2.3 in the cabal database. Did you run cabal update?)`.
118
124
* You most likely have to bump the date like `hackageSnapshot = "2019-05-08T00:00:00Z";` to a newer date (past the time that package-version was added to Hackage).
125
+
* I get a linker error.
126
+
What's a good way to investigate what the linker invocation is?
* Can I build Stack projects with resolvers that are too old to be supported by Stack >= 2?
120
133
* No. For that you need need to use an old `static-haskell-nix` version: The one before [this PR](https://github.com/nh2/static-haskell-nix/pull/98) was merged.
121
134
* I get some other error. Can I just file an issue and have you help me with it?
# This one needs `libcrypto` explicitly for reasons not yet investigated. `libpq` should pull it in via `openssl`.
1305
+
postgresql-migration=
1306
+
addStaticLinkerFlagsWithPkgconfig
1307
+
super.postgresql-migration
1308
+
[final.opensslfinal.postgresql]
1309
+
"--libs libpq libcrypto";
1310
+
1275
1311
xml-to-json=
1276
1312
addStaticLinkerFlagsWithPkgconfig
1277
1313
super.xml-to-json
@@ -1283,6 +1319,12 @@ let
1283
1319
# See https://github.com/curl/curl/issues/2775 for an investigation of why.
1284
1320
"--libs-only-L --libs-only-l libcurl expat";
1285
1321
1322
+
nfc=
1323
+
addStaticLinkerFlagsWithPkgconfig
1324
+
super.nfc
1325
+
[final.libusb-compat-0_1final.libusb1]
1326
+
"--libs libusb";
1327
+
1286
1328
# This package's dependency `rounded` currently fails its test with a patterm match error.
1287
1329
aern2-real=
1288
1330
addStaticLinkerFlagsWithPkgconfig
@@ -1664,20 +1706,28 @@ in
1664
1706
"cuda"# needs `allowUnfree = true`; enabling it gives `unsupported platform for the pure Linux stdenv`
1665
1707
"debug"# `regex-base <0.94` on `regex-tdfa-text`
1666
1708
"diagrams-builder"# `template-haskell >=2.5 && <2.16` on `size-based`
1709
+
"diagrams-cairo"# `gtk2hs` bug building `glib`: https://github.com/nh2/static-haskell-nix/issues/4#issuecomment-1634681846
1667
1710
"gloss-examples"# `base >=4.8 && <4.14` on `repa-io`
1711
+
"gtk-sni-tray"# needs `gi-gtk` which requires `glib` which is problematic
1668
1712
"gtk3"# Haskell package `glib` fails with `Ambiguous module name ‘Gtk2HsSetup’: it was found in multiple packages: gtk2hs-buildtools-0.13.8.0 gtk2hs-buildtools-0.13.8.0`
1669
-
"H"# error: anonymous function at pkgs/applications/science/math/R/default.nix:1:1 called with unexpected argument 'javaSupport', at lib/customisation.nix:69:16
1713
+
"H"# error: anonymous fun2rsyHqx27f4EQHEUjWU/libHScipher-aes-0.2.11-CpO2rsyHqx27f4EQHEUjWU.a(gf.o):(.text+0x0): first defined herection at pkgs/applications/science/math/R/default.nix:1:1 called with unexpected argument 'javaSupport', at lib/customisation.nix:69:16
1714
+
"hackage-cli"# error: error: multiple definition of `gf_mul'; /nix/store/...-cipher-aes-0.2.11/lib/ghc-9.2.7/x86_64-linux-ghc-9.2.7/cipher-aes-0.2.11-[..]/libHScipher-aes-0.2.11-[..].a(gf.o):(.text+0x0): first defined here
1670
1715
"hamilton"# `_gfortran_concat_string` linker error via openblas
1671
1716
"hquantlib"# `time >=1.4.0.0 && <1.9.0.0` on `hquantlib-time`
1672
1717
"ihaskell"# linker error
1673
1718
"LambdaHack"# fails `systemd` dependency erroring on `#include <printf.h>`
0 commit comments