From c6d31ad7229344ba50086ccdcf6b86f47a3e2ded Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 3 Mar 2015 11:01:55 +0100 Subject: [PATCH] Adds ocaml-base64 Base64 encoding and decoding in OCaml Homepage: https://github.com/mirage/ocaml-base64 --- .../ocaml-modules/base64/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/ocaml-modules/base64/default.nix diff --git a/pkgs/development/ocaml-modules/base64/default.nix b/pkgs/development/ocaml-modules/base64/default.nix new file mode 100644 index 00000000000..f7e4513d826 --- /dev/null +++ b/pkgs/development/ocaml-modules/base64/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchzip, ocaml, findlib }: + +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 ]; + + createFindlibDestdir = true; + + meta = { + homepage = https://github.com/mirage/ocaml-base64; + platforms = ocaml.meta.platforms; + description = "Base64 encoding and decoding in OCaml"; + license = stdenv.lib.licenses.isc; + maintainers = with stdenv.lib.maintainers; [ vbgl ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fba5857cfb4..9fcacf55c04 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3811,6 +3811,8 @@ let asn1-combinators = callPackage ../development/ocaml-modules/asn1-combinators { }; + base64 = callPackage ../development/ocaml-modules/base64 { }; + bolt = callPackage ../development/ocaml-modules/bolt { }; camlidl = callPackage ../development/tools/ocaml/camlidl { };