When generating the nix expression from the stack.yaml, we should also generate
let
stack-pkgs = import ./stack-pkgs.nix;
overlay = self: super: {
haskellPackages = (import <stackage>).lts-9_1
{ extraDeps = hsPkgs: (stack-pkgs.extraDeps hsPkgs
// stack-pkgs.packages hsPkgs); };
};
pkgs = import <nixpkgs> { overlays = [ overlay ]; };
in with pkgs.haskellPackages;
# pkgs.lib.mapAttrs (_: x: callPackage x {})
pkgs.haskellPackages.override {
overrides = self: super: {
# FIXME: this doesn't work yet. Overridable logic
# is missing.
};
}
along with it.
That will however break the stdout dump. So Stack2Nix would generate both the pkgset and this expression... Or dump this expression, and generate the current nix-expression in .stack.nix?
When generating the nix expression from the stack.yaml, we should also generate
along with it.
That will however break the stdout dump. So
Stack2Nix
would generate both the pkgset and this expression... Or dump this expression, and generate the current nix-expression in.stack.nix
?