Skip to content

Commit 05b490a

Browse files
committed
elmPackages.elm: Fix runtime TLS connection to package.elm-lang.org
Resolves NixOS#414208 by downgrading version of TLS library used to compile executables. See upstream issue for more context elm/compiler#2325
1 parent 8b4e41e commit 05b490a

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

pkgs/development/compilers/elm/packages/ghc9_6/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ pkgs.haskell.packages.ghc96.override {
3838

3939
inherit fetchElmDeps;
4040
elmVersion = elmPkgs.elm.version;
41+
42+
# Fix TLS issues
43+
# see https://github.com/elm/compiler/pull/2325
44+
tls = self.callPackage ./tls-1.9.0.nix { };
4145
};
4246
in
4347
elmPkgs
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{ mkDerivation, asn1-encoding, asn1-types, async, base, bytestring
2+
, cereal, crypton, crypton-x509, crypton-x509-store
3+
, crypton-x509-validation, data-default-class, gauge, hourglass
4+
, lib, memory, mtl, network, QuickCheck, tasty, tasty-quickcheck
5+
, transformers, unix-time
6+
}:
7+
mkDerivation {
8+
pname = "tls";
9+
version = "1.9.0";
10+
sha256 = "5605b9cbe0903b100e9de72800641453f74bf5dade6176dbe10b34ac9353433e";
11+
libraryHaskellDepends = [
12+
asn1-encoding asn1-types async base bytestring cereal crypton
13+
crypton-x509 crypton-x509-store crypton-x509-validation
14+
data-default-class memory mtl network transformers unix-time
15+
];
16+
testHaskellDepends = [
17+
asn1-types async base bytestring crypton crypton-x509
18+
crypton-x509-validation data-default-class hourglass QuickCheck
19+
tasty tasty-quickcheck
20+
];
21+
benchmarkHaskellDepends = [
22+
asn1-types async base bytestring crypton crypton-x509
23+
crypton-x509-validation data-default-class gauge hourglass
24+
QuickCheck tasty-quickcheck
25+
];
26+
homepage = "https://github.com/haskell-tls/hs-tls";
27+
description = "TLS/SSL protocol native implementation (Server and Client)";
28+
license = lib.licenses.bsd3;
29+
}

0 commit comments

Comments
 (0)