diff options
author | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-01-15 05:01:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 05:01:50 +0100 |
commit | 550136f516c9c940d602233fedeea7caf0ce5950 (patch) | |
tree | 5dc0910c07efca521433ce13d9040f19acb3dfef /pkgs/development/ocaml-modules/x509 | |
parent | 9bbaa2a1de90b589be045817b997de8a9ba7aded (diff) | |
download | nixpkgs-550136f516c9c940d602233fedeea7caf0ce5950.tar nixpkgs-550136f516c9c940d602233fedeea7caf0ce5950.tar.gz nixpkgs-550136f516c9c940d602233fedeea7caf0ce5950.tar.bz2 nixpkgs-550136f516c9c940d602233fedeea7caf0ce5950.tar.lz nixpkgs-550136f516c9c940d602233fedeea7caf0ce5950.tar.xz nixpkgs-550136f516c9c940d602233fedeea7caf0ce5950.tar.zst nixpkgs-550136f516c9c940d602233fedeea7caf0ce5950.zip |
ocamlPackages.asn1-combinators: 0.1.3 -> 0.2.0 (#33566)
* ocamlPackages.asn1-combinators: 0.1.3 -> 0.2.0 * ocamlPackages.x509: 0.5.3 -> 0.6.0 * ocamlPackages.x509: 0.6.0 -> 0.6.1 * ocamlPackages.tls: 0.7.1 -> 0.9.0 * jackline: fix build with ocaml-tls ≥ 0.9.0
Diffstat (limited to 'pkgs/development/ocaml-modules/x509')
-rw-r--r-- | pkgs/development/ocaml-modules/x509/default.nix | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/pkgs/development/ocaml-modules/x509/default.nix b/pkgs/development/ocaml-modules/x509/default.nix index 316035b4054..44a25865c1a 100644 --- a/pkgs/development/ocaml-modules/x509/default.nix +++ b/pkgs/development/ocaml-modules/x509/default.nix @@ -1,29 +1,28 @@ -{ stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib, asn1-combinators, nocrypto -, ounit, ocaml_oasis, ppx_sexp_conv, cstruct-unix +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg +, asn1-combinators, astring, nocrypto, ppx_sexp_conv +, ounit, cstruct-unix }: -buildOcaml rec { - name = "x509"; - version = "0.5.3"; +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-x509-${version}"; + version = "0.6.1"; - mininimumSupportedOcamlVersion = "4.02"; - - src = fetchFromGitHub { - owner = "mirleft"; - repo = "ocaml-x509"; - rev = "${version}"; - sha256 = "07cc3z6h87460z3f4vz8nlczw5jkc4vjhix413z9x6nral876rn7"; + src = fetchurl { + url = "https://github.com/mirleft/ocaml-x509/releases/download/${version}/x509-${version}.tbz"; + sha256 = "1c62mw9rnzq0rs3ihbhfs18nv4mdzwag7893hlqgji3wmaai70pk"; }; - buildInputs = [ ocaml ocaml_oasis findlib ounit ppx_sexp_conv cstruct-unix ]; - propagatedBuildInputs = [ asn1-combinators nocrypto ]; + unpackCmd = "tar -xjf $curSrc"; + + buildInputs = [ ocaml findlib ocamlbuild topkg ppx_sexp_conv ounit cstruct-unix ]; + propagatedBuildInputs = [ asn1-combinators astring nocrypto ]; - configureFlags = "--enable-tests"; - configurePhase = "./configure --prefix $out $configureFlags"; + buildPhase = "${topkg.run} build --tests true"; doCheck = true; - checkTarget = "test"; - createFindlibDestdir = true; + checkPhase = "${topkg.run} test"; + + inherit (topkg) installPhase; meta = with stdenv.lib; { homepage = https://github.com/mirleft/ocaml-x509; |