5d26766cbf
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
50 lines
940 B
Nix
50 lines
940 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
ocaml,
|
|
findlib,
|
|
bzip2,
|
|
autoreconfHook,
|
|
}:
|
|
|
|
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
|
|
ocaml
|
|
findlib
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
bzip2
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
preInstall = "mkdir -p $OCAMLFIND_DESTDIR/stublibs";
|
|
|
|
meta = {
|
|
description = "OCaml bindings for the libbz2 (AKA, bzip2) (de)compression library";
|
|
homepage = "https://gitlab.com/irill/camlbz2";
|
|
downloadPage = "https://gitlab.com/irill/camlbz2";
|
|
license = lib.licenses.lgpl21;
|
|
broken = lib.versionOlder ocaml.version "4.02" || lib.versionAtLeast ocaml.version "5.0";
|
|
maintainers = [ ];
|
|
};
|
|
}
|