Skip to content

Commit

Permalink
Update sources (#1151)
Browse files Browse the repository at this point in the history
* Update sources

* fix

---------

Co-authored-by: UpdateBot <[email protected]>
  • Loading branch information
anmonteiro and ulrikstrid authored Nov 14, 2023
1 parent 48dbfaf commit 02b7a3c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
};

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?rev=d638da8b6a17041483d90ba9af6c3b5e30b4fbcc";
nixpkgs.url = "github:NixOS/nixpkgs?rev=df4d6022db36b396fca38931afb41a626ef88e8a";
flake-utils.url = "github:numtide/flake-utils";
};

Expand Down
25 changes: 21 additions & 4 deletions ocaml/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,29 @@ with oself;
};
});

functory = osuper.functory.overrideAttrs (_: {
functory = stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-functory";
version = "0.6";
src = builtins.fetchurl {
url = "https://www.lri.fr/~filliatr/functory/download/functory-0.6.tar.gz";
sha256 = "18wpyxblz9jh5bfp0hpffnd0q8cq1b0dqp0f36vhqydfknlnpx8y";
};

nativeBuildInputs = [ ocaml findlib ];
strictDeps = true;
installTargets = [ "ocamlfind-install" ];
createFindlibDestdir = true;
postPatch = ''
substituteInPlace network.ml --replace "Pervasives." "Stdlib."
'';
});

meta = with lib; {
homepage = "https://www.lri.fr/~filliatr/functory/";
description = "A distributed computing library for Objective Caml which facilitates distributed execution of parallelizable computations in a seamless fashion";
license = licenses.lgpl21;
inherit (ocaml.meta) platforms;
};
};

gen_js_api = disableTests osuper.gen_js_api;

Expand All @@ -834,7 +852,6 @@ with oself;
gettext-camomile = osuper.gettext-camomile.overrideAttrs (_: {
propagatedBuildInputs = [ camomile ocaml_gettext ];
});
gettext-stub = disableTests osuper.gettext-stub;

git = osuper.git.overrideAttrs (_: {
src = builtins.fetchurl {
Expand Down Expand Up @@ -1465,7 +1482,7 @@ with oself;
installPhase = ''
# Not sure if this is entirely correct, but opaline doesn't like `lib_root`
substituteInPlace num.install --replace lib_root lib
OCAMLRUNPARAM=b ${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR num.install
${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR num.install
'';
});

Expand Down

0 comments on commit 02b7a3c

Please sign in to comment.