static-haskell-nix
static-haskell-nix copied to clipboard
easily build most Haskell programs into fully static Linux executables
My first shot at https://github.com/NixOS/nixpkgs/issues/61575 * [ ] Actually use `pkgsStaticShared` in the code * [ ] CI * [ ] Remove use of `pkgsStatic` * [ ] Kill my...
`pkg-config` takes a `--static` flag to output `.a` files for `--libs`. We currently add those manually in `static-haskell-nix`. Instead, we should teach cabal to pass it, given that `.cabal` files...
Hi, thanks for your work on this! I have a question regarding to the production of FFI binaries on Haskell using nix. Right now I'm trying to compile this project,...
`survey/default.nix` provides an `overlays` argument, but it appears to not be used anywhere: https://github.com/nh2/static-haskell-nix/blob/761f34bb4b09dd5838f82782c5e56ebfac4039fb/survey/default.nix#L21
This has the advantage of enabling us to just use `survey.haskellPackages.callPackage`, `callCabal2nix` and `developPackage` directly and have them generate static executables. Note that this depends on NixOS/nixpkgs#90271, so you don't...
### TODO * [ ] Potentially concerning: http://userguide.icu-project.org/packaging > Users of your ICU must compile with -DU_STATIC_IMPLEMENTATION. Does that really mean that all downstream projects have to pass `-DU_STATIC_IMPLEMENTATION` to...
Here's the reproduction: ```nix let compiler = "ghc865"; nixpkgs = builtins.fetchTarball { url = "https://github.com/nh2/nixpkgs/archive/11aa987ea5b5a593c9ca7a38b391804959f905e5.tar.gz"; sha256 = "1wns6051fxpgmszyxjvk7020zzhljjxqxkrnqmyd3b6fah7q4vny"; }; static-haskell-nix = builtins.fetchTarball { url = "https://github.com/nh2/static-haskell-nix/archive/d24dea3d46a727e1cd93e67458ce2768109efe0a.tar.gz"; sha256 = "0ri4r77md77kmbqmx0j3h0paj538zpq4hki7vy8ycpwssm2xd442"; };...
default.nix: ``` # Run using: # # $(nix-build --no-link -A fullBuildScript) { stack2nix-output-path ? "custom-stack2nix-output.nix", }: let cabalPackageName = "example-project"; compiler = "ghc865"; # matching stack.yaml # Pin static-haskell-nix version....
Trying to statically build my personal project ([here](https://github.com/doyougnu/VSat/tree/master/haskell)). All dependencies build or found in cachix/nixpkgs but the build fails with a `.cabal was modified manually, please use --force...` error: ###...