static-haskell-nix icon indicating copy to clipboard operation
static-haskell-nix copied to clipboard

easily build most Haskell programs into fully static Linux executables

Results 34 static-haskell-nix issues
Sort by recently updated
recently updated
newest added

Are/will they be supported?

is it feasible to get nix-shell develop-mode environment? so [nix-shell --pure --run 'cabal repl'] can be used for develop. it's space-waste to use different tool for development and build.

In https://github.com/nh2/static-haskell-nix/blob/d24dea3d46a727e1cd93e67458ce2768109efe0a/static-stack2nix-builder-example/default.nix#L36 I pin the version of `nix` itself. I added that in the past because the upgrade from Nix 1.* to 2.0 created (if I remember correctly) different `.drv`...

question

Is there a way that I could build a statically-linked Linux from Nix on MacOS? Thanks

I tried to use `callCabal2Nix` and got the following linking errors. ``` ../lib/.libs/libsasl2.a(dlopen.o):(.data.rel+0x10): undefined reference to `gssapiv2_server_plug_init' ../lib/.libs/libsasl2.a(dlopen.o):(.data.rel+0x28): undefined reference to `gssapiv2_client_plug_init' collect2: error: ld returned 1 exit status make[2]:...

I'm trying to statically link a package against `zeromq4-haskell`, which is special because it links against `libzmq`, a C++ library. Based on https://stackoverflow.com/a/37643200 I thought I would only have to...

Updates nixpkgs to 23.11. * `nix build --impure --expr '(import ./survey { useArchiveFilesForTemplateHaskell = true; }).working'` * `nix build --impure --expr '(import ./survey { }).working'` Completely succeed. * `nix build...

Fixes #122. This is based on top of my existing https://github.com/nh2/static-haskell-nix/pull/118 PR (which changes the same code and would cause git conflicts).

On master (88f1e2d) when setting `useArchiveFilesForTemplateHaskell = true` two versions of GHC are being depended on. Picking an arbitrary package (in this case `vector`): ``` nix-repl> pkgs = (import ./survey/default.nix...

This moves the GHC configuration/fixing/selection to the start, ensuring that `pkgsWithArchiveFiles` contains the "final" version of `ghc`. This is important as some users of the `survey` are only interested in...