nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 ocaml,
6 findlib,
7 bzip2,
8 autoreconfHook,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "ocaml${ocaml.version}-bz2";
13 version = "0.7.0";
14
15 src = fetchFromGitLab {
16 owner = "irill";
17 repo = "camlbz2";
18 rev = version;
19 sha256 = "sha256-jBFEkLN2fbC3LxTu7C0iuhvNg64duuckBHWZoBxrV/U=";
20 };
21
22 autoreconfFlags = [
23 "-I"
24 "."
25 ];
26
27 nativeBuildInputs = [
28 autoreconfHook
29 ocaml
30 findlib
31 ];
32
33 propagatedBuildInputs = [
34 bzip2
35 ];
36
37 strictDeps = true;
38
39 preInstall = "mkdir -p $OCAMLFIND_DESTDIR/stublibs";
40
41 meta = {
42 description = "OCaml bindings for the libbz2 (AKA, bzip2) (de)compression library";
43 downloadPage = "https://gitlab.com/irill/camlbz2";
44 license = lib.licenses.lgpl21;
45 broken = lib.versionOlder ocaml.version "4.02" || lib.versionAtLeast ocaml.version "5.0";
46 maintainers = [ ];
47 };
48}