Merge pull request #140562 from vbgl/orpie-darwin-fix

orpie: fix build

authored by

Ben Siraphob and committed by
GitHub
0fced4d9 9f4ccabc

+14 -5
+3 -5
pkgs/applications/misc/orpie/default.nix
··· 13 13 sha256 = "1rx2nl6cdv609pfymnbq53pi3ql5fr4kda8x10ycd9xq2gc4f21g"; 14 14 }; 15 15 16 + patches = [ ./prefix.patch ]; 17 + 16 18 preConfigure = '' 17 - patchShebangs scripts 18 - substituteInPlace scripts/compute_prefix \ 19 - --replace '"topfind"' \ 20 - '"${ocamlPackages.findlib}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/topfind"' 21 - export PREFIX=$out 19 + substituteInPlace src/orpie/install.ml.in --replace '@prefix@' $out 22 20 ''; 23 21 24 22 buildInputs = with ocamlPackages; [ curses camlp5 num gsl ];
+11
pkgs/applications/misc/orpie/prefix.patch
··· 1 + --- a/src/orpie/dune 2021-10-05 06:09:09.040120000 +0200 2 + +++ b/src/orpie/dune 2021-10-05 06:10:06.568418512 +0200 3 + @@ -18,7 +18,7 @@ 4 + ; Support $PREFIX for overriding installation location 5 + (rule 6 + (targets install.ml) 7 + - (action (run %{project_root}/scripts/compute_prefix subst %{deps} %{targets})) 8 + + (action (copy# %{deps} %{targets})) 9 + (deps (file install.ml.in))) 10 + 11 +