Skip to content

Fix support for pkgsStatic #2424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 7, 2025
Merged

Fix support for pkgsStatic #2424

merged 9 commits into from
Aug 7, 2025

Conversation

hamishmack
Copy link
Collaborator

This PR ensures that pkgsStatic can be used with both the haskell.nix GHC and the nixpkgs GHC.

Examples:

nix-build -E '((import ./. {}).pkgs.pkgsStatic.haskell-nix.tool "ghc9122" "hello" {})'
nix-build -E '((import ./. {}).pkgs.pkgsStatic.haskell-nix.tool "ghc9122" "hello" { compilerSelection = p: p.haskell.compiler; })'

Fixes #2421

This should fix using both the haskell.nix GHC and nixpkgs GHC with pkgsStatic:

```
 nix-build -E '((import ./. {}).pkgs.pkgsStatic.haskell-nix.tool "ghc9122" "hello" {})'
nix-build -E '((import ./. {}).pkgs.pkgsStatic.haskell-nix.tool "ghc9122" "hello" { compilerSelection = p: p.haskell.compiler; })'
```

Fixes #2421
@hamishmack hamishmack merged commit 9152618 into master Aug 7, 2025
28 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can we build static x86_64-linux musl bindings through pkgsStatic instead of pkgsCross.musl64?
1 participant