Merge pull request #265956 from figsoda/felix

felix-fm: fix build on darwin
This commit is contained in:
Weijia Wang 2023-11-07 02:39:36 +01:00 committed by GitHub
commit 4212c65b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,8 @@
, fetchFromGitHub
, pkg-config
, bzip2
, libgit2
, zlib
, zstd
, zoxide
}:
@ -24,11 +26,17 @@ rustPlatform.buildRustPackage rec {
buildInputs = [
bzip2
libgit2
zlib
zstd
];
nativeCheckInputs = [ zoxide ];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
buildFeatures = [ "zstd/pkg-config" ];
checkFlags = [
@ -37,11 +45,6 @@ rustPlatform.buildRustPackage rec {
"--skip=state::tests::test_has_write_permission"
];
# Cargo.lock is outdated
postConfigure = ''
cargo metadata --offline
'';
meta = with lib; {
description = "A tui file manager with vim-like key mapping";
homepage = "https://github.com/kyoheiu/felix";