Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 29 lines 770 B view raw
1{ stdenv, lib, fetchFromGitHub, autoreconfHook, which, ocaml, findlib }: 2 3if lib.versionOlder ocaml.version "4.02" 4then throw "bitv is not available for OCaml ${ocaml.version}" 5else 6 7stdenv.mkDerivation rec { 8 pname = "ocaml${ocaml.version}-bitv"; 9 version = "1.3"; 10 11 src = fetchFromGitHub { 12 owner = "backtracking"; 13 repo = "bitv"; 14 rev = version; 15 sha256 = "sha256-sZwq6c10hBBS9tGvKlWD9GE3JBrZPByfDrXE6xIPcG4="; 16 }; 17 18 nativeBuildInputs = [ autoreconfHook which ocaml findlib ]; 19 20 createFindlibDestdir = true; 21 22 meta = { 23 description = "A bit vector library for OCaml"; 24 license = lib.licenses.lgpl21; 25 homepage = "https://github.com/backtracking/bitv"; 26 maintainers = [ lib.maintainers.vbgl ]; 27 inherit (ocaml.meta) platforms; 28 }; 29}