navi: fix build on darwin

This commit is contained in:
Mario Rodas 2021-04-12 04:20:00 +00:00
parent c295eedd06
commit 28a3299425

@ -1,4 +1,4 @@
{ fetchFromGitHub, fzf, lib, makeWrapper, rustPlatform, wget }:
{ stdenv, fetchFromGitHub, fzf, lib, makeWrapper, rustPlatform, wget, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "navi";
@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ makeWrapper ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
postInstall = ''
wrapProgram $out/bin/navi \
--prefix PATH : "$out/bin" \