@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, writeText, nss, python3
1+{ stdenv, fetchurl, writeText, nss, python
22, blacklist ? []
33, includeEmail ? false
44}:
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
2020
2121 src = nss.src;
2222
23− nativeBuildInputs = [ python3 ];
23+ nativeBuildInputs = [ python ];
2424
2525 configurePhase = ''
2626 ln -s nss/lib/ckfw/builtins/certdata.txt
@@ -29,7 +29,8 @@ stdenv.mkDerivation rec {
2929 ${concatStringsSep "\n" (map (c: ''"${c}"'') blacklist)}
3030 EOF
3131
32− cp ${certdata2pem} certdata2pem.py
32+ cat ${certdata2pem} > certdata2pem.py
33+ patch -p1 < ${./fix-unicode-ca-names.patch}
3334 ${optionalString includeEmail ''
3435 # Disable CAs used for mail signing
3536 substituteInPlace certdata2pem.py --replace \[\'CKA_TRUST_EMAIL_PROTECTION\'\] '''