navi: fix build on darwin
This commit is contained in:
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" \
|
||||
|
|
Loading…
Reference in a new issue