-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
/
default.nix
33 lines (28 loc) · 1 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
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";
url = http://forge.ocamlcore.org/frs/download.php/1432/ocaml-safepass-1.3.tgz;
sha256 = "0lb8xbpyc5d1zml7s7mmcr6y2ipwdp7qz73lkv9asy7dyi6cj15g";
};
in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-safepass-${param.version}";
src = fetchurl {
inherit (param) url sha256;
};
buildInputs = [ ocaml findlib ocamlbuild ];
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 or [];
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}