Skip to content

Commit

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

* rm upstreamed

---------

Co-authored-by: UpdateBot <[email protected]>
  • Loading branch information
anmonteiro and ulrikstrid authored Apr 6, 2024
1 parent ec7e132 commit d2507b7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 23 deletions.
3 changes: 0 additions & 3 deletions ci/filter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ let
# Incompatible with omd 2.0
"sail"

# Incompatible with ppxlib >= 0.31
"vcaml"

# Doesn't build on 4.14. Re-enable when we remove 4.14
"asai"

Expand Down
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=61dbcaec5f100a6034cbc2fc6a7dffa5ade1a42d";
nixpkgs.url = "github:NixOS/nixpkgs?rev=d9d5b4dc496f827eec3d6ba9cd64ea45177456b3";
flake-utils.url = "github:numtide/flake-utils";
};

Expand Down
18 changes: 3 additions & 15 deletions ocaml/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ let
lib
kerberos
linuxHeaders
nixpkgs
pam
net-snmp;
zstd = zstd-oc;
Expand Down Expand Up @@ -1448,13 +1449,6 @@ with oself;
'';
});

ocaml-version = osuper.ocaml-version.overrideAttrs (_: {
src = builtins.fetchurl {
url = https://github.com/ocurrent/ocaml-version/releases/download/v3.6.5/ocaml-version-3.6.5.tbz;
sha256 = "1lnzz7m0g8zc4kx11acf7x7v6zkl403x760hjwdddksw8abzcww4";
};
});

ocamlformat-lib = osuper.ocamlformat-lib.overrideAttrs (_: {
src = fetchFromGitHub {
owner = "ocaml-ppx";
Expand Down Expand Up @@ -1887,9 +1881,6 @@ with oself;
ppx_cstubs = osuper.ppx_cstubs.overrideAttrs (o: {
buildInputs = o.buildInputs ++ [ findlib ];
postPatch = ''
substituteInPlace src/internal/ppxc__script_real.ml \
--replace-fail "C_content_make ()" "C_content_make (struct end)"
${lib.optionalString (lib.versionOlder "5.2" ocaml.version) ''
substituteInPlace src/custom/ppx_cstubs_custom.cppo.ml \
--replace-fail "init_code fun_code" "init_code" \
Expand Down Expand Up @@ -1973,7 +1964,7 @@ with oself;
then null
else osuper.ppx_tools;

ppxlib = osuper.ppxlib.overrideAttrs (_: {
ppxlib = osuper.ppxlib.overrideAttrs (o: {
src =
if lib.versionAtLeast osuper.ocaml.version "5.2" then
fetchFromGitHub
Expand All @@ -1983,10 +1974,7 @@ with oself;
rev = "04e050cbe2cf3e5cdb4441c480e4f472a5033941";
hash = "sha256-+qMxLVWgltXKackhZGHm21XPJukAbKFtvU1wgk97fCs=";
} else
builtins.fetchurl {
url = https://github.com/ocaml-ppx/ppxlib/releases/download/0.32.0/ppxlib-0.32.0.tbz;
sha256 = "0as2an2i9ygfbvswypqh165a664chd1j4yi5npp24pw9rwycfz2h";
};
o.src;
propagatedBuildInputs = [
ocaml-compiler-libs
ppx_derivers
Expand Down
2 changes: 2 additions & 0 deletions ocaml/janestreet-0.16.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, fzf
, lib
, linuxHeaders
, nixpkgs
, pam
, kerberos
, net-snmp
Expand Down Expand Up @@ -1717,6 +1718,7 @@ with self;
angstrom-async
faraday
];
patches = [ "${nixpkgs}/pkgs/development/ocaml-modules/janestreet/vcaml.patch" ];
};

virtual_dom = janePackage {
Expand Down

0 comments on commit d2507b7

Please sign in to comment.