diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2021-10-05 07:32:05 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2021-10-05 07:32:05 +0200 |
commit | 8cc0385c8b1b4d854a0cf8e45450a39774c43175 (patch) | |
tree | 97cd24194a0217e777ad8d9e1620f6eea3ebc774 /pkgs/applications/misc/orpie | |
parent | 20eeb1e09eb3b13c70700f744b815d427bff4c2d (diff) |
orpie: fix build
Diffstat (limited to 'pkgs/applications/misc/orpie')
-rw-r--r-- | pkgs/applications/misc/orpie/default.nix | 8 | ||||
-rw-r--r-- | pkgs/applications/misc/orpie/prefix.patch | 11 |
2 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/applications/misc/orpie/default.nix b/pkgs/applications/misc/orpie/default.nix index 45e043b6dcfae..a1f119f6834cd 100644 --- a/pkgs/applications/misc/orpie/default.nix +++ b/pkgs/applications/misc/orpie/default.nix @@ -13,12 +13,10 @@ ocamlPackages.buildDunePackage rec { sha256 = "1rx2nl6cdv609pfymnbq53pi3ql5fr4kda8x10ycd9xq2gc4f21g"; }; + patches = [ ./prefix.patch ]; + preConfigure = '' - patchShebangs scripts - substituteInPlace scripts/compute_prefix \ - --replace '"topfind"' \ - '"${ocamlPackages.findlib}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/topfind"' - export PREFIX=$out + substituteInPlace src/orpie/install.ml.in --replace '@prefix@' $out ''; buildInputs = with ocamlPackages; [ curses camlp5 num gsl ]; diff --git a/pkgs/applications/misc/orpie/prefix.patch b/pkgs/applications/misc/orpie/prefix.patch new file mode 100644 index 0000000000000..41e72ca6d6163 --- /dev/null +++ b/pkgs/applications/misc/orpie/prefix.patch @@ -0,0 +1,11 @@ +--- a/src/orpie/dune 2021-10-05 06:09:09.040120000 +0200 ++++ b/src/orpie/dune 2021-10-05 06:10:06.568418512 +0200 +@@ -18,7 +18,7 @@ + ; Support $PREFIX for overriding installation location + (rule + (targets install.ml) +- (action (run %{project_root}/scripts/compute_prefix subst %{deps} %{targets})) ++ (action (copy# %{deps} %{targets})) + (deps (file install.ml.in))) + + |