a08e4457b7
Diff: https://github.com/kyoheiu/felix/compare/v2.2.3...v2.2.4 Changelog: https://github.com/kyoheiu/felix/blob/v2.2.4/CHANGELOG.md
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, bzip2
|
|
, zstd
|
|
, zoxide
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "felix";
|
|
version = "2.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kyoheiu";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-KuEuWZSxh04NefkkJBYClnKs+UP7VwlyPElACjNZ5k8=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-jYDe/3PDGCweNgHb+8i9az7J7BATlRjd3yha0nOc/gc=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
bzip2
|
|
zstd
|
|
];
|
|
|
|
nativeCheckInputs = [ zoxide ];
|
|
|
|
buildFeatures = [ "zstd/pkg-config" ];
|
|
|
|
checkFlags = [
|
|
# extra test files not shipped with the repository
|
|
"--skip=functions::tests::test_list_up_contents"
|
|
"--skip=magic_image::tests::test_inspect_image"
|
|
"--skip=magic_packed::tests::test_inspect_signature"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A 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";
|
|
};
|
|
}
|