From 9fc35ed766cabb36326be1f1cb1fbbfdb8c95d66 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 28 Dec 2014 16:03:46 +0100 Subject: [PATCH] Adds ocaml-safepass-1.3 OCaml-safepass is a library offering facilities for the safe storage of user passwords. By "safe" we mean that passwords are salted and hashed using the Bcrypt algorithm. Salting prevents rainbow-table based attacks, whereas hashing by a very time-consuming algorithm such as Bcrypt renders brute-force password cracking impractical. Homepage: http://ocaml-safepass.forge.ocamlcore.org/ --- .../ocaml-modules/safepass/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/ocaml-modules/safepass/default.nix diff --git a/pkgs/development/ocaml-modules/safepass/default.nix b/pkgs/development/ocaml-modules/safepass/default.nix new file mode 100644 index 000000000000..7fc5dadda74e --- /dev/null +++ b/pkgs/development/ocaml-modules/safepass/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, ocaml, findlib }: + +stdenv.mkDerivation { + name = "ocaml-safepass-1.3"; + src = fetchurl { + url = http://forge.ocamlcore.org/frs/download.php/1432/ocaml-safepass-1.3.tgz; + sha256 = "0lb8xbpyc5d1zml7s7mmcr6y2ipwdp7qz73lkv9asy7dyi6cj15g"; + }; + + buildInputs = [ ocaml findlib ]; + + 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; + platforms = ocaml.meta.platforms; + maintainers = with stdenv.lib.maintainers; [ vbgl ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e95183953093..23f16f75e8b3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3808,6 +3808,8 @@ let pycaml = callPackage ../development/ocaml-modules/pycaml { }; + safepass = callPackage ../development/ocaml-modules/safepass { }; + sqlite3EZ = callPackage ../development/ocaml-modules/sqlite3EZ { }; twt = callPackage ../development/ocaml-modules/twt { };