1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/development/ocaml-modules/ssl/default.nix
Sigmanificient 543cd40ecc treewide: remove trailing space in description
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 |
xargs -i nvim {}` and sorting the opened files by hand, avoiding
generated packages list
2024-07-26 03:38:50 +02:00

42 lines
907 B
Nix

{ alcotest
, buildDunePackage
, dune-configurator
, fetchFromGitHub
, lib
, ocaml
, openssl
, pkg-config
}:
buildDunePackage rec {
pname = "ssl";
version = "0.7.0";
duneVersion = "3";
src = fetchFromGitHub {
owner = "savonet";
repo = "ocaml-ssl";
rev = "v${version}";
hash = "sha256-gi80iwlKaI4TdAVnCyPG03qRWFa19DHdTrA0KMFBAc4=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ openssl ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
preCheck = ''
mkdir -p _build/default/tests/
cp tests/digicert_certificate.pem _build/default/tests/
'';
meta = {
homepage = "http://savonet.rastageeks.org/";
description = "OCaml bindings for libssl";
license = "LGPL+link exception";
maintainers = with lib.maintainers; [ anmonteiro dandellion maggesi ];
};
}