fselect: fix darwin build

This commit is contained in:
midchildan 2021-03-11 01:38:14 +09:00
parent 60da0e9594
commit 79362b94a0
No known key found for this signature in database
GPG Key ID: D9A5748BACC6E3C2

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, rustPlatform, installShellFiles }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "fselect";
@ -14,6 +14,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-vVIanMkc0sPzu0L48oOh8wEEUOckR/AYkz81u4OR+fE=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optional stdenv.isDarwin libiconv;
postInstall = ''
installManPage docs/fselect.1