mirror of
https://github.com/input-output-hk/devx.git
synced 2024-09-21 00:58:07 +03:00
Cleanup most build failures. (#35)
This commit is contained in:
parent
48c1251186
commit
2537273731
@ -2,7 +2,10 @@
|
||||
{ pkgs, compiler, compiler-nix-name, withHLS ? true, withHlint ? true, withIOG ? true }:
|
||||
let tool-version-map = import ./tool-map.nix;
|
||||
tool = tool-name: pkgs.haskell-nix.tool compiler-nix-name tool-name (tool-version-map compiler-nix-name tool-name);
|
||||
cabal-install = tool "cabal"; in
|
||||
cabal-install = tool "cabal";
|
||||
# add a trace helper. This will trace a message about disabling a component despite requesting it, if it's not supported in that compiler.
|
||||
compiler-not-in = compiler-list: name: (if __elem compiler-nix-name compiler-list then __trace "No ${name}. Not yet compatible with ${compiler-nix-name}" false else true);
|
||||
in
|
||||
pkgs.mkShell {
|
||||
# The `cabal` overrride in this shell-hook doesn't do much yet. But
|
||||
# we may need to massage cabal a bit, so we'll leave it in here for
|
||||
@ -48,8 +51,8 @@ pkgs.mkShell {
|
||||
]
|
||||
++ pkgs.lib.optional pkgs.stdenv.hostPlatform.isLinux systemd
|
||||
)
|
||||
++ pkgs.lib.optional withHLS (tool "haskell-language-server")
|
||||
++ pkgs.lib.optional withHlint (tool "hlint")
|
||||
++ pkgs.lib.optional (withHLS && (compiler-not-in ["ghc961"] "Haskell Language Server")) (tool "haskell-language-server")
|
||||
++ pkgs.lib.optional (withHlint && (compiler-not-in ["ghc961"] "HLint")) (tool "hlint")
|
||||
++ pkgs.lib.optional withIOG
|
||||
(with pkgs; [ cddl cbor-diag ]
|
||||
++ map pkgs.lib.getDev (with pkgs; [ libsodium-vrf secp256k1 R_4_1_3]))
|
||||
|
@ -101,7 +101,9 @@
|
||||
"ghc8101" "ghc8102" "ghc8103" "ghc8104" "ghc8105" "ghc8106" "ghc810420210212"
|
||||
"ghc901"
|
||||
"ghc921" "ghc922" "ghc923" "ghc924" "ghc925" "ghc926"
|
||||
"ghc941" "ghc942" "ghc943" ];
|
||||
"ghc941" "ghc942" "ghc943"
|
||||
"ghc96020230302"
|
||||
];
|
||||
static-pkgs = if pkgs.stdenv.hostPlatform.isLinux
|
||||
then if pkgs.stdenv.hostPlatform.isAarch64
|
||||
then pkgs.pkgsCross.aarch64-multiplatform-musl
|
||||
|
@ -1,7 +1,10 @@
|
||||
{ pkgs, compiler, compiler-nix-name, withHLS ? true, withHlint ? true, withIOG ? true }:
|
||||
let tool-version-map = import ./tool-map.nix;
|
||||
tool = tool-name: pkgs.haskell-nix.tool compiler-nix-name tool-name (tool-version-map compiler-nix-name tool-name);
|
||||
cabal-install = tool "cabal"; in
|
||||
cabal-install = tool "cabal";
|
||||
# add a trace helper. This will trace a message about disabling a component despite requesting it, if it's not supported in that compiler.
|
||||
compiler-not-in = compiler-list: name: (if __elem compiler-nix-name compiler-list then __trace "No ${name}. Not yet compatible with ${compiler-nix-name}" false else true);
|
||||
in
|
||||
pkgs.mkShell ({
|
||||
# Note [cabal override]:
|
||||
#
|
||||
@ -103,8 +106,8 @@ pkgs.mkShell ({
|
||||
pkgconfig
|
||||
stdenv.cc.cc.lib ]) ++ (with pkgs.buildPackages; [
|
||||
])
|
||||
++ pkgs.lib.optional withHLS (tool "haskell-language-server")
|
||||
++ pkgs.lib.optional withHlint (tool "hlint")
|
||||
++ pkgs.lib.optional (withHLS && (compiler-not-in ["ghc961"] "Haskell Language Server")) (tool "haskell-language-server")
|
||||
++ pkgs.lib.optional (withHlint && (compiler-not-in ["ghc961"] "HLint")) (tool "hlint")
|
||||
++ pkgs.lib.optional withIOG
|
||||
(with pkgs; [ cddl cbor-diag ]
|
||||
++ map pkgs.lib.getDev (with pkgs; [
|
||||
|
Loading…
Reference in New Issue
Block a user