diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2021-06-10 16:23:06 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2021-06-10 16:23:06 +0200 |
commit | 3912cf9371ea8d9141e6c09a37939a3f6fdcb028 (patch) | |
tree | f4205af9d49c50245be349448813301101802668 /pkgs/development/ocaml-modules | |
parent | 5e78bbcb4926bc9e35a85573ea362aec1fa9b7ac (diff) | |
download | nixpkgs-3912cf9371ea8d9141e6c09a37939a3f6fdcb028.tar nixpkgs-3912cf9371ea8d9141e6c09a37939a3f6fdcb028.tar.gz nixpkgs-3912cf9371ea8d9141e6c09a37939a3f6fdcb028.tar.bz2 nixpkgs-3912cf9371ea8d9141e6c09a37939a3f6fdcb028.tar.lz nixpkgs-3912cf9371ea8d9141e6c09a37939a3f6fdcb028.tar.xz nixpkgs-3912cf9371ea8d9141e6c09a37939a3f6fdcb028.tar.zst nixpkgs-3912cf9371ea8d9141e6c09a37939a3f6fdcb028.zip |
ocamlPackages.bz2: init at 0.7.0
Closes #126469
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/bz2/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/bz2/default.nix b/pkgs/development/ocaml-modules/bz2/default.nix new file mode 100644 index 00000000000..7de24c13462 --- /dev/null +++ b/pkgs/development/ocaml-modules/bz2/default.nix @@ -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 ]; + }; +} |