Skip to content

Commit

Permalink
ocamlPackages.fzf: Patch hardcoded path to fzf binary
Browse files Browse the repository at this point in the history
  • Loading branch information
bcc32 authored and vbgl committed Jan 14, 2023
1 parent 01ff3d2 commit c52c4d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkgs/development/ocaml-modules/janestreet/0.15.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ self
, bash
, fetchpatch
, fzf
, lib
, openssl
, zstd
Expand Down Expand Up @@ -380,6 +381,9 @@ with self;
hash = "1ha0i6dx5bgwzbdi4rn98wjwi2imv5p2i7qs7hy0c6cmg88xbdry";
meta.description = "A library for running the fzf command line tool";
propagatedBuildInputs = [ async core_kernel ppx_jane ];
postPatch = ''
substituteInPlace src/fzf.ml --replace /usr/bin/fzf ${fzf}/bin/fzf
'';
};

higher_kinded = janePackage {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ let
if lib.versionOlder "4.10.2" ocaml.version
then import ../development/ocaml-modules/janestreet/0.15.nix {
inherit self;
inherit (pkgs) bash fetchpatch lib openssl zstd;
inherit (pkgs) bash fetchpatch fzf lib openssl zstd;
}
else if lib.versionOlder "4.08" ocaml.version
then import ../development/ocaml-modules/janestreet/0.14.nix {
Expand Down

0 comments on commit c52c4d4

Please sign in to comment.