Skip to content

Commit 4e238e4

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 4e238e4

File tree

2 files changed

+83
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)