nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 40 lines 902 B view raw
1{ lib, stdenv, fetchFromGitLab, ocaml, findlib, bzip2, autoreconfHook }: 2 3if lib.versionOlder ocaml.version "4.02" 4then throw "bz2 is not available for OCaml ${ocaml.version}" 5else 6 7stdenv.mkDerivation rec { 8 pname = "ocaml${ocaml.version}-bz2"; 9 version = "0.7.0"; 10 11 src = fetchFromGitLab { 12 owner = "irill"; 13 repo = "camlbz2"; 14 rev = version; 15 sha256 = "sha256-jBFEkLN2fbC3LxTu7C0iuhvNg64duuckBHWZoBxrV/U="; 16 }; 17 18 autoreconfFlags = [ "-I" "." ]; 19 20 nativeBuildInputs = [ 21 autoreconfHook 22 ocaml 23 findlib 24 ]; 25 26 propagatedBuildInputs = [ 27 bzip2 28 ]; 29 30 strictDeps = true; 31 32 preInstall = "mkdir -p $OCAMLFIND_DESTDIR/stublibs"; 33 34 meta = with lib; { 35 description = "OCaml bindings for the libbz2 (AKA, bzip2) (de)compression library"; 36 downloadPage = "https://gitlab.com/irill/camlbz2"; 37 license = licenses.lgpl21; 38 maintainers = with maintainers; [ ]; 39 }; 40}