File tree Expand file tree Collapse file tree 9 files changed +41
-24
lines changed
haskell_module_repl_cross_library_deps_test
stack-snapshot-deps/hs_override_stack_test Expand file tree Collapse file tree 9 files changed +41
-24
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ rules_haskell_dependencies()
16
16
17
17
load ("@rules_haskell//haskell:nixpkgs.bzl" , "haskell_register_ghc_nixpkgs" )
18
18
19
+ GHC_VERSION = "9.4.8"
20
+
19
21
haskell_register_ghc_nixpkgs (
20
- attribute_path = "haskell.compiler.ghc946" ,
22
+ attribute_path = "haskell.compiler.ghc{}" . format ( GHC_VERSION . replace ( "." , "" )) ,
21
23
repository = "@rules_haskell//nixpkgs:default.nix" ,
22
- version = "9.4.8" ,
24
+ version = GHC_VERSION ,
23
25
)
24
26
25
27
load ("@rules_haskell//haskell:toolchain.bzl" , "rules_haskell_toolchains" )
26
28
27
- rules_haskell_toolchains (version = "9.4.8" )
29
+ rules_haskell_toolchains (version = GHC_VERSION )
28
30
29
31
load ("@rules_nixpkgs_cc//:cc.bzl" , "nixpkgs_cc_configure" )
30
32
load ("@rules_nixpkgs_python//:python.bzl" , "nixpkgs_python_configure" )
Original file line number Diff line number Diff line change @@ -39,12 +39,14 @@ nix_haskell_toolchains = use_extension(
39
39
"nix_haskell_toolchains" ,
40
40
)
41
41
42
+ GHC_VERSION = "9.4.8"
43
+
42
44
# Declare a default nix-based toolchain
43
45
nix_haskell_toolchains .new (
44
46
attribute_path = "" ,
45
- nix_file_content = """ with import <nixpkgs> {} ; haskell.packages.ghc946 .ghc""" ,
47
+ nix_file_content = "with import <nixpkgs> {{}} ; haskell.packages.ghc{} .ghc" . format ( GHC_VERSION . replace ( "." , "" )) ,
46
48
repository = "@nixpkgs_default" ,
47
- version = "9.4.8" ,
49
+ version = GHC_VERSION ,
48
50
)
49
51
use_repo (
50
52
nix_haskell_toolchains ,
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ nix_haskell_toolchains.new(
328
328
cabalopts = test_cabalopts ,
329
329
ghcopts = test_ghcopts ,
330
330
haddock_flags = test_haddock_flags ,
331
- nix_file_content = """ with import <nixpkgs> {} ; haskell.packages.ghc946 .ghc""" ,
331
+ nix_file_content = "with import <nixpkgs> {{}} ; haskell.packages.ghc{} .ghc" . format ( test_ghc_version . replace ( "." , "" )) ,
332
332
repl_ghci_args = test_repl_ghci_args ,
333
333
repository = "@nixpkgs_default" ,
334
334
version = test_ghc_version ,
Original file line number Diff line number Diff line change @@ -14,15 +14,17 @@ rules_haskell_dependencies()
14
14
15
15
load ("@rules_haskell//haskell:nixpkgs.bzl" , "haskell_register_ghc_nixpkgs" )
16
16
17
+ GHC_VERSION = "9.4.8"
18
+
17
19
haskell_register_ghc_nixpkgs (
18
- attribute_path = "haskell.compiler.ghc946" ,
20
+ attribute_path = "haskell.compiler.ghc{}" . format ( GHC_VERSION . replace ( "." , "" )) ,
19
21
repository = "@rules_haskell//nixpkgs:default.nix" ,
20
- version = "9.4.8" ,
22
+ version = GHC_VERSION ,
21
23
)
22
24
23
25
load ("@rules_haskell//haskell:toolchain.bzl" , "rules_haskell_toolchains" )
24
26
25
- rules_haskell_toolchains (version = "9.4.8" )
27
+ rules_haskell_toolchains (version = GHC_VERSION )
26
28
27
29
load ("@rules_nixpkgs_cc//:cc.bzl" , "nixpkgs_cc_configure" )
28
30
load (
Original file line number Diff line number Diff line change @@ -14,15 +14,18 @@ rules_haskell_dependencies()
14
14
15
15
load ("@rules_haskell//haskell:nixpkgs.bzl" , "haskell_register_ghc_nixpkgs" )
16
16
17
+
18
+ GHC_VERSION = "9.4.8"
19
+
17
20
haskell_register_ghc_nixpkgs (
18
- attribute_path = "haskell.compiler.ghc946" ,
21
+ attribute_path = "haskell.compiler.ghc{}" . format ( GHC_VERSION . replace ( "." , "" )) ,
19
22
repository = "@rules_haskell//nixpkgs:default.nix" ,
20
- version = "9.4.8" ,
23
+ version = GHC_VERSION ,
21
24
)
22
25
23
26
load ("@rules_haskell//haskell:toolchain.bzl" , "rules_haskell_toolchains" )
24
27
25
- rules_haskell_toolchains (version = "9.4.8" )
28
+ rules_haskell_toolchains (version = GHC_VERSION )
26
29
27
30
load (
28
31
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl" ,
Original file line number Diff line number Diff line change @@ -9,15 +9,17 @@ rules_haskell_dependencies()
9
9
10
10
load ("@rules_haskell//haskell:nixpkgs.bzl" , "haskell_register_ghc_nixpkgs" )
11
11
12
+ GHC_VERSION = "9.4.8"
13
+
12
14
haskell_register_ghc_nixpkgs (
13
- attribute_path = "haskell.compiler.ghc946" ,
15
+ attribute_path = "haskell.compiler.ghc{}" . format ( GHC_VERSION . replace ( "." , "" )) ,
14
16
repository = "@rules_haskell//nixpkgs:default.nix" ,
15
- version = "9.4.8" ,
17
+ version = GHC_VERSION ,
16
18
)
17
19
18
20
load ("@rules_haskell//haskell:toolchain.bzl" , "rules_haskell_toolchains" )
19
21
20
- rules_haskell_toolchains (version = "9.4.8" )
22
+ rules_haskell_toolchains (version = GHC_VERSION )
21
23
22
24
load (
23
25
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl" ,
Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ rules_haskell_dependencies()
16
16
17
17
load ("@rules_haskell//haskell:nixpkgs.bzl" , "haskell_register_ghc_nixpkgs" )
18
18
19
+ GHC_VERSION = "9.4.8"
20
+
19
21
haskell_register_ghc_nixpkgs (
20
- attribute_path = "haskell.compiler.ghc946" ,
22
+ attribute_path = "haskell.compiler.ghc{}" . format ( GHC_VERSION . replace ( "." , "" )) ,
21
23
repository = "@rules_haskell//nixpkgs:default.nix" ,
22
- version = "9.4.8" ,
24
+ version = GHC_VERSION ,
23
25
)
24
26
25
27
load ("@rules_haskell//haskell:toolchain.bzl" , "rules_haskell_toolchains" )
26
28
27
- rules_haskell_toolchains (version = "9.4.8" )
29
+ rules_haskell_toolchains (version = GHC_VERSION )
28
30
29
31
load (
30
32
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl" ,
Original file line number Diff line number Diff line change @@ -9,15 +9,17 @@ rules_haskell_dependencies()
9
9
10
10
load ("@rules_haskell//haskell:nixpkgs.bzl" , "haskell_register_ghc_nixpkgs" )
11
11
12
+ GHC_VERSION = "9.4.8"
13
+
12
14
haskell_register_ghc_nixpkgs (
13
- attribute_path = "haskell.compiler.ghc946" ,
15
+ attribute_path = "haskell.compiler.ghc{}" . format ( GHC_VERSION . replace ( "." , "" )) ,
14
16
repository = "@rules_haskell//nixpkgs:default.nix" ,
15
- version = "9.4.8" ,
17
+ version = GHC_VERSION ,
16
18
)
17
19
18
20
load ("@rules_haskell//haskell:toolchain.bzl" , "rules_haskell_toolchains" )
19
21
20
- rules_haskell_toolchains (version = "9.4.8" )
22
+ rules_haskell_toolchains (version = GHC_VERSION )
21
23
22
24
load (
23
25
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl" ,
Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ rules_haskell_dependencies()
11
11
12
12
load ("@rules_haskell//haskell:nixpkgs.bzl" , "haskell_register_ghc_nixpkgs" )
13
13
14
+ GHC_VERSION = "9.4.8"
15
+
14
16
haskell_register_ghc_nixpkgs (
15
- attribute_path = "haskell.compiler.ghc946" ,
17
+ attribute_path = "haskell.compiler.ghc{}" . format ( GHC_VERSION . replace ( "." , "" )) ,
16
18
repository = "@rules_haskell//nixpkgs:default.nix" ,
17
- version = "9.4.8" ,
19
+ version = GHC_VERSION ,
18
20
)
19
21
20
22
load ("@rules_haskell//haskell:toolchain.bzl" , "rules_haskell_toolchains" )
21
23
22
- rules_haskell_toolchains (version = "9.4.8" )
24
+ rules_haskell_toolchains (version = GHC_VERSION )
23
25
24
26
load (
25
27
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl" ,
You can’t perform that action at this time.
0 commit comments