parent
5e78bbcb49
commit
3912cf9371
2 changed files with 40 additions and 0 deletions
38
pkgs/development/ocaml-modules/bz2/default.nix
Normal file
38
pkgs/development/ocaml-modules/bz2/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitLab, ocaml, findlib, bzip2, autoreconfHook }:
|
||||
|
||||
if !lib.versionAtLeast ocaml.version "4.02"
|
||||
then throw "bz2 is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-bz2";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "irill";
|
||||
repo = "camlbz2";
|
||||
rev = version;
|
||||
sha256 = "sha256-jBFEkLN2fbC3LxTu7C0iuhvNg64duuckBHWZoBxrV/U=";
|
||||
};
|
||||
|
||||
autoreconfFlags = "-I .";
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
ocaml
|
||||
findlib
|
||||
bzip2
|
||||
];
|
||||
|
||||
preInstall = "mkdir -p $OCAMLFIND_DESTDIR/stublibs";
|
||||
|
||||
meta = with lib; {
|
||||
description = "OCaml bindings for the libbz2 (AKA, bzip2) (de)compression library";
|
||||
downloadPage = "https://gitlab.com/irill/camlbz2";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ superherointj ];
|
||||
};
|
||||
}
|
|
@ -80,6 +80,8 @@ let
|
|||
|
||||
bos = callPackage ../development/ocaml-modules/bos { };
|
||||
|
||||
bz2 = callPackage ../development/ocaml-modules/bz2 { };
|
||||
|
||||
ca-certs = callPackage ../development/ocaml-modules/ca-certs { };
|
||||
|
||||
ca-certs-nss = callPackage ../development/ocaml-modules/ca-certs-nss { };
|
||||
|
|
Loading…
Reference in a new issue