Skip to content

v4.1.0

Latest
Compare
Choose a tag to compare
@cdepillabout cdepillabout released this 11 Nov 23:21
3cb77e9
  • Add build depend on system tzdata package for the Haskell tz and tzdata packages in nix/build-support/stacklock2nix/suggestedOverlay.nix. Fixed in #52.

  • Make sure Haskell packages specified as Git repos in the stack.yaml file check out all submodules when fetching their source. Fixed in #53. Thanks to @isomorpheme for reporting this.

  • Change handling of subdirs for git extra-deps.

    stacklock2nix internally calls cabal2nix to generate Nix expressions for Haskell packages. In previous versions of stacklock2nix, the actual subdir for a git extra-dep would be copied to the Nix store, and then cabal2nix would be run on it.

    This has been fixed to instead call cabalni2x on the full Git repo, but pass the --subpath to specify the sub package. This likely works better where sub paths contain soft links to other paths in the Git repo.

    It is unlikely this change will cause any problems for any current users of stacklock2nix.

    Fixed in #46 and #56. Thanks to @isomorpheme

  • Make stacklock2nix's fromYAML function more reliable.

    stacklock2nix internally uses the remarshal tool for converting from the stack.yaml file to a JSON, in order to read it with Nix.

    Recent versions of remarshal (>= 0.17.0) changed functionality to fail at runtime more often. An new flag is needed on the command line to fall back to the old functionality.

    Fixed in #55. Thanks to @Mr-Andersen