2016-10-08 06:44:25 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
2014-12-28 15:03:46 +00:00
|
|
|
|
2016-10-15 14:10:41 +00:00
|
|
|
let param =
|
|
|
|
if stdenv.lib.versionAtLeast ocaml.version "4.02"
|
|
|
|
then {
|
|
|
|
version = "2.0";
|
|
|
|
url = http://forge.ocamlcore.org/frs/download.php/1615/ocaml-safepass-2.0.tgz;
|
|
|
|
sha256 = "1zxx3wcyzhxxvm5w9c21y7hpa11h67paaaz9mfsyiqk6fs6hcvmw";
|
|
|
|
} else {
|
|
|
|
version = "1.3";
|
2014-12-28 15:03:46 +00:00
|
|
|
url = http://forge.ocamlcore.org/frs/download.php/1432/ocaml-safepass-1.3.tgz;
|
|
|
|
sha256 = "0lb8xbpyc5d1zml7s7mmcr6y2ipwdp7qz73lkv9asy7dyi6cj15g";
|
|
|
|
};
|
2016-10-15 14:10:41 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml${ocaml.version}-safepass-${param.version}";
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (param) url sha256;
|
|
|
|
};
|
2014-12-28 15:03:46 +00:00
|
|
|
|
2016-10-08 06:44:25 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2014-12-28 15:03:46 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://ocaml-safepass.forge.ocamlcore.org/;
|
|
|
|
description = "An OCaml library offering facilities for the safe storage of user passwords";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-12-28 15:03:46 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|