Skip to content

Commit 11daff4

Browse files
committed
Bump cabal to 3.16.0.0 and build it with ghc 9.12.2
1 parent 5ce4021 commit 11daff4

38 files changed

+2835
-12
lines changed

extra-hackages/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
with builtins; mapAttrs (_: mapAttrs (_: data: rec {
2+
inherit (data) sha256;
3+
revisions = data.revisions // {
4+
default = revisions."${data.revisions.default}";
5+
};
6+
})) {
7+
"ghc-internal" = import ./nix/ghc-internal.nix;
8+
9+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{ system
2+
, compiler
3+
, flags
4+
, pkgs
5+
, hsPkgs
6+
, pkgconfPkgs
7+
, errorHandler
8+
, config
9+
, ... }:
10+
{
11+
flags = {};
12+
package = {
13+
specVersion = "3.0";
14+
identifier = { name = "ghc-internal"; version = "9.1202.0"; };
15+
license = "BSD-3-Clause";
16+
copyright = "";
17+
maintainer = "The GHC Developers <[email protected]>";
18+
author = "";
19+
homepage = "";
20+
url = "";
21+
synopsis = "Basic libraries";
22+
description = "This package contains the implementation of GHC's standard libraries and is\nnot intended for use by end-users.\n.\nUsers should instead use either the @base@ or @ghc-experimental@ packages";
23+
buildType = "Configure";
24+
};
25+
components = {
26+
"library" = {
27+
depends = [
28+
(hsPkgs."rts" or (errorHandler.buildDepError "rts"))
29+
(hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
30+
(hsPkgs."ghc-bignum" or (errorHandler.buildDepError "ghc-bignum"))
31+
];
32+
libs = pkgs.lib.optionals (system.isWindows) [
33+
(pkgs."wsock32" or (errorHandler.sysDepError "wsock32"))
34+
(pkgs."user32" or (errorHandler.sysDepError "user32"))
35+
(pkgs."shell32" or (errorHandler.sysDepError "shell32"))
36+
(pkgs."mingw32" or (errorHandler.sysDepError "mingw32"))
37+
(pkgs."kernel32" or (errorHandler.sysDepError "kernel32"))
38+
(pkgs."advapi32" or (errorHandler.sysDepError "advapi32"))
39+
(pkgs."mingwex" or (errorHandler.sysDepError "mingwex"))
40+
(pkgs."ws2_32" or (errorHandler.sysDepError "ws2_32"))
41+
(pkgs."shlwapi" or (errorHandler.sysDepError "shlwapi"))
42+
(pkgs."ole32" or (errorHandler.sysDepError "ole32"))
43+
(pkgs."rpcrt4" or (errorHandler.sysDepError "rpcrt4"))
44+
(pkgs."ntdll" or (errorHandler.sysDepError "ntdll"))
45+
];
46+
buildable = true;
47+
};
48+
};
49+
} // {
50+
src = pkgs.lib.mkDefault (pkgs.fetchurl {
51+
url = "https://pranaysashank.com/ghc-91202/package/ghc-internal-9.1202.0.tar.gz";
52+
sha256 = config.sha256;
53+
});
54+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"9.1202.0" = {
3+
sha256 = "e799ce891e53432fccc9235a433372454dd910fbf3698ff7e8dce2c201f9e616";
4+
revisions = {
5+
r0 = {
6+
nix = import ../hackage/ghc-internal-9.1202.0-r0-60e5794fc814deae622641b9982cd9c9db929b6ea4f778fc70fbc10b572ad8df.nix;
7+
revNum = 0;
8+
revTimestamp = "2025-08-31T08:25:08Z";
9+
sha256 = "60e5794fc814deae622641b9982cd9c9db929b6ea4f778fc70fbc10b572ad8df";
10+
};
11+
default = "r0";
12+
};
13+
};
14+
}

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
builtins.mapAttrs (name: exe: {
8080
type = "app";
8181
program = exe + "/bin/${name}";
82-
}) pkgs.haskell-nix.nix-tools.exes
82+
}) (pkgs.haskell-nix.nix-tools.exes // { "cabal" = pkgs.haskell-nix.bootstrap-cabal-install; })
8383
);
8484
};
8585

0 commit comments

Comments
 (0)