diff options
author | Pascal Wittmann <mail@pascal-wittmann.de> | 2019-04-07 21:57:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-07 21:57:38 +0200 |
commit | c62b24679bda1adbd9bd65a6ade485969e3a8d31 (patch) | |
tree | faaac3788368cd9ea97ccfc490d4e067de55696e /pkgs/development | |
parent | ad8e0454f1aa27c0e0af535ce3eafcca3a407116 (diff) | |
parent | 3a10042c81ca28996978b91608a900344a551e14 (diff) | |
download | nixpkgs-c62b24679bda1adbd9bd65a6ade485969e3a8d31.tar nixpkgs-c62b24679bda1adbd9bd65a6ade485969e3a8d31.tar.gz nixpkgs-c62b24679bda1adbd9bd65a6ade485969e3a8d31.tar.bz2 nixpkgs-c62b24679bda1adbd9bd65a6ade485969e3a8d31.tar.lz nixpkgs-c62b24679bda1adbd9bd65a6ade485969e3a8d31.tar.xz nixpkgs-c62b24679bda1adbd9bd65a6ade485969e3a8d31.tar.zst nixpkgs-c62b24679bda1adbd9bd65a6ade485969e3a8d31.zip |
Merge pull request #59065 from vbgl/ocaml-base64-3.1.0
ocamlPackages.base64: 2.0.0 -> 3.2.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ocaml-modules/base64/2.0.nix | 24 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/base64/default.nix | 22 |
2 files changed, 36 insertions, 10 deletions
diff --git a/pkgs/development/ocaml-modules/base64/2.0.nix b/pkgs/development/ocaml-modules/base64/2.0.nix new file mode 100644 index 00000000000..8128dc1cb6f --- /dev/null +++ b/pkgs/development/ocaml-modules/base64/2.0.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }: + +let version = "2.0.0"; in + +stdenv.mkDerivation { + name = "ocaml-base64-${version}"; + + src = fetchzip { + url = "https://github.com/mirage/ocaml-base64/archive/v${version}.tar.gz"; + sha256 = "1nv55gwq5vaxmrcz9ja2s165b1p9fhcxszc1l76043gpa56qm4fs"; + }; + + buildInputs = [ ocaml findlib ocamlbuild ]; + + createFindlibDestdir = true; + + meta = { + homepage = https://github.com/mirage/ocaml-base64; + platforms = ocaml.meta.platforms or []; + description = "Base64 encoding and decoding in OCaml"; + license = stdenv.lib.licenses.isc; + maintainers = with stdenv.lib.maintainers; [ vbgl ]; + }; +} diff --git a/pkgs/development/ocaml-modules/base64/default.nix b/pkgs/development/ocaml-modules/base64/default.nix index 8128dc1cb6f..2633d43c104 100644 --- a/pkgs/development/ocaml-modules/base64/default.nix +++ b/pkgs/development/ocaml-modules/base64/default.nix @@ -1,24 +1,26 @@ -{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }: +{ lib, fetchzip, buildDunePackage, alcotest, bos }: -let version = "2.0.0"; in +let version = "3.2.0"; in -stdenv.mkDerivation { - name = "ocaml-base64-${version}"; +buildDunePackage { + pname = "base64"; + inherit version; src = fetchzip { url = "https://github.com/mirage/ocaml-base64/archive/v${version}.tar.gz"; - sha256 = "1nv55gwq5vaxmrcz9ja2s165b1p9fhcxszc1l76043gpa56qm4fs"; + sha256 = "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy"; }; - buildInputs = [ ocaml findlib ocamlbuild ]; + minimumOCamlVersion = "4.03"; - createFindlibDestdir = true; + buildInputs = [ alcotest bos ]; + + doCheck = true; meta = { homepage = https://github.com/mirage/ocaml-base64; - platforms = ocaml.meta.platforms or []; description = "Base64 encoding and decoding in OCaml"; - license = stdenv.lib.licenses.isc; - maintainers = with stdenv.lib.maintainers; [ vbgl ]; + license = lib.licenses.isc; + maintainers = with lib.maintainers; [ vbgl ]; }; } |