nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchurl,
4 ctypes,
5 ctypes-foreign,
6 dune-configurator,
7 result,
8 libargon2,
9 buildDunePackage,
10}:
11
12buildDunePackage (finalAttrs: {
13 pname = "argon2";
14 version = "1.0.2";
15
16 minimalOCamlVersion = "4.02.3";
17
18 src = fetchurl {
19 url = "https://github.com/Khady/ocaml-argon2/releases/download/${finalAttrs.version}/argon2-${finalAttrs.version}.tbz";
20 hash = "sha256-NDsOV4kPT2SnSfNHDBAK+VKZgHDIKxW+dNJ/C5bQ8gU=";
21 };
22
23 buildInputs = [
24 dune-configurator
25 ];
26
27 propagatedBuildInputs = [
28 ctypes
29 ctypes-foreign
30 libargon2
31 result
32 ];
33
34 meta = {
35 homepage = "https://github.com/Khady/ocaml-argon2";
36 description = "Ocaml bindings to Argon2";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ naora ];
39 };
40})