diff --git a/pkgs/development/libraries/haskell/asn1-encoding/default.nix b/pkgs/development/libraries/haskell/asn1-encoding/default.nix new file mode 100644 index 00000000000..c151da0c7dd --- /dev/null +++ b/pkgs/development/libraries/haskell/asn1-encoding/default.nix @@ -0,0 +1,16 @@ +{ cabal, asn1Types, mtl, text, time }: + +cabal.mkDerivation (self: { + pname = "asn1-encoding"; + version = "0.8.1.2"; + sha256 = "01i7zga9nfvccgjixnxza9mi7jj4k6308g8asnljr44s1k8rikwm"; + isLibrary = true; + isExecutable = true; + buildDepends = [ asn1Types mtl text time ]; + meta = { + homepage = "http://github.com/vincenthz/hs-asn1"; + description = "ASN1 data reader and writer in RAW, BER and DER forms"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/asn1-parse/default.nix b/pkgs/development/libraries/haskell/asn1-parse/default.nix new file mode 100644 index 00000000000..16386d939e4 --- /dev/null +++ b/pkgs/development/libraries/haskell/asn1-parse/default.nix @@ -0,0 +1,14 @@ +{ cabal, asn1Encoding, asn1Types, mtl, text, time }: + +cabal.mkDerivation (self: { + pname = "asn1-parse"; + version = "0.8.1"; + sha256 = "021mbm5aayfx9vhxq4x1jj3gpnzq0bqaqcl1zsaa2a6l0qzpnmh9"; + buildDepends = [ asn1Encoding asn1Types mtl text time ]; + meta = { + homepage = "http://github.com/vincenthz/hs-asn1"; + description = "Simple monadic parser for ASN1 stream types"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/x509-store/default.nix b/pkgs/development/libraries/haskell/x509-store/default.nix new file mode 100644 index 00000000000..bc1c0c47dc9 --- /dev/null +++ b/pkgs/development/libraries/haskell/x509-store/default.nix @@ -0,0 +1,18 @@ +{ cabal, asn1Encoding, asn1Types, cryptoPubkeyTypes, filepath, mtl +, pem, time, x509 +}: + +cabal.mkDerivation (self: { + pname = "x509-store"; + version = "1.4.3"; + sha256 = "1px5r5y4vaxx479d4av333g1sc03mz1aalpvwwkbi5bwnxydvf01"; + buildDepends = [ + asn1Encoding asn1Types cryptoPubkeyTypes filepath mtl pem time x509 + ]; + meta = { + homepage = "http://github.com/vincenthz/hs-certificate"; + description = "X.509 collection accessing and storing methods"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/x509-system/default.nix b/pkgs/development/libraries/haskell/x509-system/default.nix new file mode 100644 index 00000000000..36d1f5bd706 --- /dev/null +++ b/pkgs/development/libraries/haskell/x509-system/default.nix @@ -0,0 +1,14 @@ +{ cabal, filepath, mtl, pem, time, x509, x509Store }: + +cabal.mkDerivation (self: { + pname = "x509-system"; + version = "1.4.2"; + sha256 = "1r22ignmwkv1z26bmnwh7prqy69cln26pfyyaf5r2vw8s66rgl39"; + buildDepends = [ filepath mtl pem time x509 x509Store ]; + meta = { + homepage = "http://github.com/vincenthz/hs-certificate"; + description = "Handle per-operating-system X.509 accessors and storage"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/x509-validation/default.nix b/pkgs/development/libraries/haskell/x509-validation/default.nix new file mode 100644 index 00000000000..27f5d6ecbbe --- /dev/null +++ b/pkgs/development/libraries/haskell/x509-validation/default.nix @@ -0,0 +1,21 @@ +{ cabal, asn1Encoding, asn1Types, byteable, cryptohash +, cryptoPubkey, cryptoPubkeyTypes, dataDefaultClass, filepath, mtl +, network, pem, time, x509, x509Store +}: + +cabal.mkDerivation (self: { + pname = "x509-validation"; + version = "1.5.0"; + sha256 = "1xarn00ipi77whly5yjlpqa0xd25lj0jf4xk8ylp4ba58hvcxqrn"; + buildDepends = [ + asn1Encoding asn1Types byteable cryptohash cryptoPubkey + cryptoPubkeyTypes dataDefaultClass filepath mtl network pem time + x509 x509Store + ]; + meta = { + homepage = "http://github.com/vincenthz/hs-certificate"; + description = "X.509 Certificate and CRL validation"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/x509/default.nix b/pkgs/development/libraries/haskell/x509/default.nix new file mode 100644 index 00000000000..0aababd4715 --- /dev/null +++ b/pkgs/development/libraries/haskell/x509/default.nix @@ -0,0 +1,24 @@ +{ cabal, asn1Encoding, asn1Parse, asn1Types, cryptohash +, cryptoPubkeyTypes, filepath, HUnit, mtl, pem, QuickCheck +, testFramework, testFrameworkHunit, testFrameworkQuickcheck2, time +}: + +cabal.mkDerivation (self: { + pname = "x509"; + version = "1.4.7"; + sha256 = "0bm5sijahpih2c6scz3y32904wzvmllgslg9d547cksbgy7lyx1h"; + buildDepends = [ + asn1Encoding asn1Parse asn1Types cryptohash cryptoPubkeyTypes + filepath mtl pem time + ]; + testDepends = [ + asn1Types cryptoPubkeyTypes HUnit mtl QuickCheck testFramework + testFrameworkHunit testFrameworkQuickcheck2 time + ]; + meta = { + homepage = "http://github.com/vincenthz/hs-certificate"; + description = "X509 reader and writer"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 6e738048a92..0087aa59df3 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -567,6 +567,10 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x asn1Data = callPackage ../development/libraries/haskell/asn1-data {}; + asn1Encoding = callPackage ../development/libraries/haskell/asn1-encoding {}; + + asn1Parse = callPackage ../development/libraries/haskell/asn1-parse {}; + asn1Types = callPackage ../development/libraries/haskell/asn1-types {}; AspectAG = callPackage ../development/libraries/haskell/AspectAG {}; @@ -2502,6 +2506,14 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x wxdirect = callPackage ../development/libraries/haskell/wxHaskell/wxdirect.nix {}; + x509 = callPackage ../development/libraries/haskell/x509 {}; + + x509Store = callPackage ../development/libraries/haskell/x509-store {}; + + x509System = callPackage ../development/libraries/haskell/x509-system {}; + + x509Validation = callPackage ../development/libraries/haskell/x509-validation {}; + X11 = callPackage ../development/libraries/haskell/X11 {}; X11Xft = callPackage ../development/libraries/haskell/X11-xft {};