Closed sternenseemann closed 3 years ago
4.14 is not supported: base >=4.13 && <4.14
is in orgstat.cabal
. Not sure why nixpkgs attempts to build with it anyway.
stackage-nightly has base 4.14 and we follow that. Due to propagation it is not always possible to have multiple versions of the same package in the package set unfortunately.
We know about the breakage and orgstat
is marked as broken due to that currently, I was just looking for a way to make it work again.
@sternenseemann I've encountered a problem: diagrams-lib
and diagrams-svg
work with base-4.13
at most, and they have not been updated for a few years. They are thus unavailable with the new LTS (17) -- I'm not sure I understand how one would include a sub-package built with another set of versions of dependencies the main project has. Alternatively, I have tried to somehow add base-4.14
without changing LTS, but without success. Do you have an idea of what the solution could be here? (switching to a different plotting library is the worst case, so I'm looking for something simpler)
diagrams-lib
is not really an issue since they are compatible with base 4.13, but they just haven't released a version with updated bounds yet unfortunately. I've fixed diagrams-lib for the next haskell update in nixpkgs, so it should work on the haskell-updates
branch now and on master
after friday: https://github.com/NixOS/nixpkgs/pull/117419. diagrams-svg
also builds there currently.
We probably should annoy upstream to release updated bounds to hackage.
I think it's easy to fix, but what's the easiest way to test it? I only use stack, so do you have any idea how to compile all dependencies with 4.13, but the project itself with 4.14?..
I'd say update to a nightly resolver like nightly-2020-12-14
which has base 4.14. nixpkgs
switched to nightly over lts a few months ago that is probably how we arrived in this situation.
Nevermind, stackage-nightly
trips up on diagrams. Try this:
let
pkgs = import (builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/fe0bdf4d0178bf7420c417a3aae44b369feec6e5.tar.gz";
sha256 = "1yh3lig5srfc3ln3qsic2i091p7rdci3rgmhv1dyks2q67ihi4c7";
}) { };
inherit (pkgs)
haskell
haskellPackages
;
in
haskell.lib.markUnbroken (haskell.lib.overrideSrc haskellPackages.orgstat {
version = "git";
src = ./.;
})
(and then just nix-build that or nix-shell -A env)
Sorry for the delay. I fixed compatibility with base-4.14
now, the new orgstat version is 0.1.10
. Thank you for providing the build script! Tell me if this works, I'll close the issue for now (feel free to reopen).
Thanks, that fixes it indeed! Should be working in nixpkgs again friday to saturday :)
On current
haskell-updates
: