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
Currently, stacklock2nix exposes Nixpkgs-compatible Haskell package set overlays, created from the contents of the stack.yaml and stack.yaml.lock files. Here's an example of explicitly taking these overlays and applying them to an existing package set:
If you take these overlays and apply them to an existing Nixpkgs Haskell package set (as done in the above code), the resulting Haskell package set will obviously contain packages that aren't in your stack.yaml or stack.yaml.lock files.
For example, the cachix package is in the Nixpkgs Haskell package sets, but it is not in Stackage. So if you use stacklock2nix to create overlays from a local stack.yaml and stack.yaml.lock file, and apply those overlays to a normal Nixpkgs Haskell package set, the resulting package set will contain a cachix derivation.
Instead of just exposing overlays, it would be nice if stacklock2nix also made it easy to create a completely new package sets. That way, you can be sure you are only using/building packages defined in your stack.yaml.lock file, and not additional Haskell packages from Nixpkgs.
I'm not sure what sort of API this would look like for stacklock2nix, or what additional attributes it should expose for this functionality.
The text was updated successfully, but these errors were encountered:
Currently, stacklock2nix exposes Nixpkgs-compatible Haskell package set overlays, created from the contents of the
stack.yaml
andstack.yaml.lock
files. Here's an example of explicitly taking these overlays and applying them to an existing package set:stacklock2nix/my-example-haskell-lib-advanced/nix/overlay.nix
Lines 15 to 30 in ac35783
If you take these overlays and apply them to an existing Nixpkgs Haskell package set (as done in the above code), the resulting Haskell package set will obviously contain packages that aren't in your
stack.yaml
orstack.yaml.lock
files.For example, the
cachix
package is in the Nixpkgs Haskell package sets, but it is not in Stackage. So if you usestacklock2nix
to create overlays from a localstack.yaml
andstack.yaml.lock
file, and apply those overlays to a normal Nixpkgs Haskell package set, the resulting package set will contain acachix
derivation.Instead of just exposing overlays, it would be nice if
stacklock2nix
also made it easy to create a completely new package sets. That way, you can be sure you are only using/building packages defined in yourstack.yaml.lock
file, and not additional Haskell packages from Nixpkgs.I'm not sure what sort of API this would look like for
stacklock2nix
, or what additional attributes it should expose for this functionality.The text was updated successfully, but these errors were encountered: