Skip to content

Commit

Permalink
substituteInPlace --replace -> substituteInPlace --replace-fail (#…
Browse files Browse the repository at this point in the history
…1317)

* `substituteInPlace --replace` -> `substituteInPlace --replace-fail`

* fix libpq
  • Loading branch information
anmonteiro authored Mar 12, 2024
1 parent 4d2fcf1 commit 1f739ed
Show file tree
Hide file tree
Showing 15 changed files with 86 additions and 202 deletions.
5 changes: 4 additions & 1 deletion ocaml/binaryen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ buildDunePackage rec {
hash = "sha256-TE0EXojbKcNmNIvFDLtoUDgqbNEdFillPuTgEN4gmaI=";
};

postPatch = ''substituteInPlace src/dune --replace "(libraries libbinaryen.c)" "(c_library_flags -lbinaryen)"'';
postPatch = ''
substituteInPlace src/dune --replace-fail \
"(libraries libbinaryen.c)" "(c_library_flags -lbinaryen)"
'';

# Only needed for tests
# nativeBuildInputs = [ dune-configurator js_of_ocaml ];
Expand Down
8 changes: 6 additions & 2 deletions ocaml/cookie/session-lwt.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{ lib, buildDunePackage, cookie, session-cookie, lwt, result }:
{ lib, buildDunePackage, cookie, session-cookie, lwt }:

buildDunePackage {
pname = "session-cookie-lwt";
inherit (cookie) src version;

propagatedBuildInputs = [ session-cookie lwt result ];
propagatedBuildInputs = [ session-cookie lwt ];

postPatch = ''
substituteInPlace session-cookie-lwt/dune --replace-fail "result" ""
'';

meta = {
description = "Session handling based on Cookie parsing and serialization for OCaml";
Expand Down
Loading

0 comments on commit 1f739ed

Please sign in to comment.