js_of_ocaml: fix jbuild (explicitly call bash) (#29749)

* js_of_ocaml: fix jbuild (explicitly call bash)

* js_of_ocaml: Use patchShebangs instead of manual patch

authored by ibor and committed by Peter Hoeg 00422b22 ec075b40

+2
+2
pkgs/development/tools/ocaml/js_of_ocaml/3.0.nix
··· 9 10 buildInputs = [ ocaml findlib jbuilder ocaml-migrate-parsetree ppx_tools_versioned ]; 11 12 propagatedBuildInputs = [ js_of_ocaml-compiler uchar ]; 13 14 buildPhase = "jbuilder build -p js_of_ocaml";
··· 9 10 buildInputs = [ ocaml findlib jbuilder ocaml-migrate-parsetree ppx_tools_versioned ]; 11 12 + postPatch = "patchShebangs lib/generate_stubs.sh"; 13 + 14 propagatedBuildInputs = [ js_of_ocaml-compiler uchar ]; 15 16 buildPhase = "jbuilder build -p js_of_ocaml";