uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/development/ocaml-modules/ocaml-r/default.nix
Normal file
46
pkgs/development/ocaml-modules/ocaml-r/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, fetchFromGitHub, buildDunePackage, pkg-config, dune-configurator, stdio, R
|
||||
, alcotest
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "ocaml-r";
|
||||
version = "0.4.0";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pveber";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "10is2s148kfh3g0pwniyzp5mh48k57ldvn8gm86469zvgxyij1ri";
|
||||
};
|
||||
|
||||
# Without the following patch, stub generation fails with:
|
||||
# > Fatal error: exception (Failure "not supported: osVersion")
|
||||
preConfigure = ''
|
||||
substituteInPlace stubgen/stubgen.ml --replace \
|
||||
'failwithf "not supported: %s" name ()' \
|
||||
'sprintf "(* not supported: %s *)" name'
|
||||
substituteInPlace lib/config/discover.ml --replace \
|
||||
' libRmath"' '"'
|
||||
'';
|
||||
|
||||
# This currently fails with dune
|
||||
strictDeps = false;
|
||||
|
||||
nativeBuildInputs = [ pkg-config R ];
|
||||
buildInputs = [ dune-configurator stdio R ];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ alcotest ];
|
||||
|
||||
meta = {
|
||||
description = "OCaml bindings for the R interpreter";
|
||||
inherit (src.meta) homepage;
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = [ lib.maintainers.bcdarwin ];
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue