Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 41 lines 944 B view raw
1{ lib, fetchFromGitHub, fetchpatch, buildDunePackage, pkg-config, dune-configurator, stdio, R 2, alcotest 3}: 4 5buildDunePackage rec { 6 pname = "ocaml-r"; 7 version = "0.6.0"; 8 9 duneVersion = "3"; 10 11 minimalOCamlVersion = "4.08"; 12 13 src = fetchFromGitHub { 14 owner = "pveber"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "sha256-jPyVMxjeh9+xu0dD1gelAxcOhxouKczyvzVoKZ5oSrs="; 18 }; 19 20 # Finds R and Rmathlib separatley 21 patches = [ 22 (fetchpatch { 23 url = "https://github.com/pveber/ocaml-r/commit/aa96dc5.patch"; 24 sha256 = "sha256-xW33W2ciesyUkDKEH08yfOXv0wP0V6X80or2/n2Nrb4="; 25 }) 26 ]; 27 28 nativeBuildInputs = [ pkg-config R ]; 29 buildInputs = [ dune-configurator stdio R ]; 30 31 doCheck = true; 32 checkInputs = [ alcotest ]; 33 34 meta = { 35 description = "OCaml bindings for the R interpreter"; 36 inherit (src.meta) homepage; 37 license = lib.licenses.gpl3; 38 maintainers = [ lib.maintainers.bcdarwin ]; 39 }; 40 41}