Unverified Commit 4212c65b authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #265956 from figsoda/felix

felix-fm: fix build on darwin
parents dd3db149 99e00379
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -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";