depot/third_party/nixpkgs/pkgs/by-name/fe/felix-fm/package.nix

61 lines
1.2 KiB
Nix
Raw Normal View History

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
bzip2,
libgit2,
nix-update-script,
zlib,
zstd,
zoxide,
}:
rustPlatform.buildRustPackage rec {
pname = "felix";
version = "2.14.0";
src = fetchFromGitHub {
owner = "kyoheiu";
repo = "felix";
rev = "refs/tags/v${version}";
hash = "sha256-PcC0lZ41qTVE4V3VdwBq83qYfEJO3RJouuS2+bpcBfo=";
};
cargoHash = "sha256-4tvk7H2CrTx9m1f0PLnNv+LWg6oIGTUfirRhIaz2lHo=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
bzip2
libgit2
zlib
zstd
];
nativeCheckInputs = [ zoxide ];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
buildFeatures = [ "zstd/pkg-config" ];
checkFlags = [
# extra test files not shipped with the repository
"--skip=functions::tests::test_list_up_contents"
"--skip=state::tests::test_has_write_permission"
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Tui file manager with vim-like key mapping";
homepage = "https://github.com/kyoheiu/felix";
changelog = "https://github.com/kyoheiu/felix/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "fx";
};
}