Skip to content

Commit d58d411

Browse files
committed
Add cabal2json to static-nix-tools
1 parent 8d6e641 commit d58d411

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

Diff for: nix-tools/cabal.project

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
index-state: 2024-03-28T00:00:00Z
22

3-
with-compiler: ghc-9.2.8
4-
53
packages: nix-tools
64

75
-- haskell.nix expects nix-tools to provide the cabal and hpack executables
86
-- so we put these two packages here, so they will be present even if nix-tools
97
-- dependencies change
10-
extra-packages: cabal-install, hpack
8+
extra-packages: cabal-install, hpack, Cabal-syntax-json
119

1210
test-show-details: direct
1311

@@ -29,3 +27,9 @@ source-repository-package
2927
location: https://github.com/michaelpj/hackage-db.git
3028
tag: f3b9240212b036391871e4ea09891e91efcea7a1
3129
--sha256: sha256-n0ATmkwtR68E2FuZK3QIQgZirVmWbd21vIQmzhGKsRw=
30+
31+
source-repository-package
32+
type: git
33+
location: https://github.com/andreabedini/Cabal-syntax-json.git
34+
tag: bf97be0038489239a11c61653b55afc77356ac1e
35+
--sha256: sha256-i9TEqQqRqFM07q1Lr6wcMlURhBkhkVxHhP1jQjSE+Yg=

Diff for: nix-tools/nix-tools/nix-tools.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ library
2929
, Stack2nix.External.Resolve
3030
, Stack2nix.Project
3131
, Stack2nix.Stack
32-
build-depends: base >= 4 && <4.18
32+
build-depends: base >= 4 && <4.20
3333
, Cabal >= 3.10.3 && <3.11
3434
, Cabal-syntax >= 3.10 && <3.11
3535
, aeson >= 2.0 && <2.3
@@ -46,7 +46,7 @@ library
4646
-- Needs https://github.com/input-output-hk/iohk-nix/commit/6a8c29117eff36ce975e02e01efc8b25d93fcb90#diff-6fb0c6517b547a8baf082d5d2d604842
4747
-- to work with the data-dir issues when building components.
4848
-- This commit is included since 0.6.5.
49-
, hnix >= 0.6.5 && <0.17
49+
, hnix >= 0.6.5 && <0.18
5050
, hpack
5151
, http-client
5252
, http-client-tls

Diff for: nix-tools/overlay.nix

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
final: _prev:
22

33
let
4-
compiler-nix-name = "ghc8107";
4+
compiler-nix-name = "ghc964";
55

66
nix-tools = nix-tools-set {
77
nix-tools = nix-tools-unchecked;
@@ -18,7 +18,7 @@ let
1818
src = ./.;
1919

2020
compiler-nix-name = final.lib.mkDefault compiler-nix-name;
21-
compilerSelection = p: p.haskell.compiler;
21+
# compilerSelection = p: p.haskell.compiler;
2222

2323
# tests need to fetch hackage
2424
configureArgs = final.lib.mkDefault "--disable-tests";
@@ -54,6 +54,9 @@ let
5454

5555
inherit (project.hsPkgs.hpack.components.exes)
5656
hpack;
57+
58+
inherit (project.hsPkgs.Cabal-syntax-json.components.exes)
59+
cabal2json;
5760
};
5861

5962
warning = final.lib.mapAttrs

Diff for: nix-tools/static/project.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ let
4040
plan-to-nix.dontStrip = false;
4141
stack-repos.dontStrip = false;
4242
};
43+
packages.cabal-install.components.exes.cabal.dontStrip = false;
44+
packages.hpack.components.exes.hpack.dontStrip = false;
45+
packages.Cabal-syntax-json.components.exes.cabal2json.dontStrip = false;
4346
};
4447

4548

@@ -58,7 +61,7 @@ let
5861

5962
static-nix-tools-project = pkgs.haskell-nix.project' {
6063

61-
compiler-nix-name = "ghc928";
64+
compiler-nix-name = "ghc964";
6265

6366
src = ../.;
6467

Diff for: nix-tools/static/zipped.nix

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ let
3535
drvs' = [
3636
hsPkgs.cabal-install.components.exes.cabal
3737
hsPkgs.hpack.components.exes.hpack
38+
hsPkgs.Cabal-syntax-json.components.exes.cabal2json
3839
] ++ strippedNixToolsComponents;
3940
};
4041

0 commit comments

Comments
 (0)