Skip to content

Commit 5bc4b81

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 5bc4b81

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-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: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{ mkDerivation
2+
, asn1-encoding
3+
, asn1-types
4+
, async
5+
, base
6+
, bytestring
7+
, cereal
8+
, crypton
9+
, crypton-x509
10+
, crypton-x509-store
11+
, crypton-x509-validation
12+
, data-default-class
13+
, gauge
14+
, hourglass
15+
, lib
16+
, memory
17+
, mtl
18+
, network
19+
, QuickCheck
20+
, tasty
21+
, tasty-quickcheck
22+
, transformers
23+
, unix-time
24+
}:
25+
mkDerivation {
26+
pname = "tls";
27+
version = "1.9.0";
28+
sha256 = "5605b9cbe0903b100e9de72800641453f74bf5dade6176dbe10b34ac9353433e";
29+
libraryHaskellDepends = [
30+
asn1-encoding
31+
asn1-types
32+
async
33+
base
34+
bytestring
35+
cereal
36+
crypton
37+
crypton-x509
38+
crypton-x509-store
39+
crypton-x509-validation
40+
data-default-class
41+
memory
42+
mtl
43+
network
44+
transformers
45+
unix-time
46+
];
47+
testHaskellDepends = [
48+
asn1-types
49+
async
50+
base
51+
bytestring
52+
crypton
53+
crypton-x509
54+
crypton-x509-validation
55+
data-default-class
56+
hourglass
57+
QuickCheck
58+
tasty
59+
tasty-quickcheck
60+
];
61+
benchmarkHaskellDepends = [
62+
asn1-types
63+
async
64+
base
65+
bytestring
66+
crypton
67+
crypton-x509
68+
crypton-x509-validation
69+
data-default-class
70+
gauge
71+
hourglass
72+
QuickCheck
73+
tasty-quickcheck
74+
];
75+
homepage = "https://github.com/haskell-tls/hs-tls";
76+
description = "TLS/SSL protocol native implementation (Server and Client)";
77+
license = lib.licenses.bsd3;
78+
}

0 commit comments

Comments
 (0)