Skip to content

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