at 18.09-beta 37 lines 1.1 kB view raw
1{stdenv, fetchurl, ocaml, findlib}: 2 3if stdenv.lib.versionAtLeast ocaml.version "4.06" 4then throw "cryptgps is not available for OCaml ${ocaml.version}" 5else 6 7stdenv.mkDerivation rec { 8 name = "ocaml-cryptgps-${version}"; 9 version = "0.2.1"; 10 11 src = fetchurl { 12 url = "http://download.camlcity.org/download/cryptgps-0.2.1.tar.gz"; 13 sha256 = "1mp7i42cm9w9grmcsa69m3h1ycpn6a48p43y4xj8rsc12x9nav3s"; 14 }; 15 16 buildInputs = [ocaml findlib]; 17 18 configurePhase = "true"; # Skip configure phase 19 20 createFindlibDestdir = true; 21 22 meta = { 23 homepage = http://projects.camlcity.org/projects/cryptgps.html; 24 description = "Cryptographic functions for OCaml"; 25 longDescription = '' 26 This library implements the symmetric cryptographic algorithms 27 Blowfish, DES, and 3DES. The algorithms are written in O'Caml, 28 i.e. this is not a binding to some C library, but the implementation 29 itself. 30 ''; 31 license = stdenv.lib.licenses.mit; 32 platforms = ocaml.meta.platforms or []; 33 maintainers = [ 34 stdenv.lib.maintainers.z77z 35 ]; 36 }; 37}