forked from mirrors/nixpkgs
2bd86e9e47
Reason: https://github.com/NixOS/nixpkgs/pull/20090#commitcomment-19686426 This reverts commit9ffcb1b250
, reversing changes made toa6283c1126
.
30 lines
878 B
Nix
30 lines
878 B
Nix
{ stdenv, fetchzip, ocaml, findlib, cstruct, type_conv, zarith, ounit }:
|
|
|
|
assert stdenv.lib.versionAtLeast ocaml.version "4.01";
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml-nocrypto-${version}";
|
|
version = "0.5.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/mirleft/ocaml-nocrypto/archive/${version}.tar.gz";
|
|
sha256 = "15gffvixk12ghsfra9amfszd473c8h188zfj03ngvblbdm0d80m0";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib type_conv ounit ];
|
|
propagatedBuildInputs = [ cstruct zarith ];
|
|
|
|
configureFlags = "--enable-tests";
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
homepage = https://github.com/mirleft/ocaml-nocrypto;
|
|
description = "Simplest possible crypto to support TLS";
|
|
platforms = ocaml.meta.platforms or [];
|
|
license = stdenv.lib.licenses.bsd2;
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
};
|
|
}
|