Skip to content

Commit

Permalink
[Chore] Bump stack2cabal
Browse files Browse the repository at this point in the history
Problem: The latest release of 'stack2cabal' tools is pretty old and
doesn't work with newer GHCs.

Solution: Use the latest unreleased revision from the 'stack2cabal'
upstream repo instead.
  • Loading branch information
rvem committed Oct 7, 2024
1 parent 55b6b38 commit ccbc5d2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
};
};
};
} // (flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
} // (flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ] (system:
let
haskellPkgs = haskell-nix.legacyPackages."${system}";
pkgs = import nixpkgs {
Expand Down Expand Up @@ -92,8 +92,17 @@
# all components for the current haskell package
all-components = get-package-components hs-pkg.components;

stack2cabal = haskellPkgs.haskell.lib.overrideCabal haskellPkgs.haskellPackages.stack2cabal
(drv: { jailbreak = true; broken = false; });
stack2cabal = (haskellPkgs.haskell.lib.overrideCabal haskellPkgs.haskellPackages.stack2cabal
(drv: { jailbreak = true; broken = false; })).overrideAttrs (oldAttrs: {
version = "724dc9f";
# Pin the revision that works with newer GHCs
src = pkgs.fetchFromGitHub {
owner = "hasufell";
repo = "stack2cabal";
rev = "724dc9f478dac1208a607b9e4d2bc37b7a38e126";
sha256 = "sha256-HvtsyfuqwI21Dj1qOqxaLo0LA4MeEaNtxzeprKg+VGc=";
};
});

in {
# nixpkgs revision pinned by this flake
Expand Down

0 comments on commit ccbc5d2

Please sign in to comment.