2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, bzip2
|
|
|
|
, zstd
|
|
|
|
, zoxide
|
|
|
|
}:
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "felix";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "2.7.0";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kyoheiu";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
sha256 = "sha256-3oXF9BG3BjGOeXqJHo3+fpcqcTOKrLED7Y3VQ06tnNA=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
cargoHash = "sha256-2XMVappHbf1ZPtQO8zy8Z0n9wshDM4d30qkmG8OBoUY=";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
zstd
|
|
|
|
];
|
2022-10-06 18:32:54 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ zoxide ];
|
2022-10-06 18:32:54 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
buildFeatures = [ "zstd/pkg-config" ];
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# extra test files not shipped with the repository
|
2022-12-17 10:02:37 +00:00
|
|
|
"--skip=functions::tests::test_list_up_contents"
|
2023-05-24 13:37:59 +00:00
|
|
|
"--skip=state::tests::test_has_write_permission"
|
2022-11-21 17:40:18 +00:00
|
|
|
];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A tui file manager with vim-like key mapping";
|
|
|
|
homepage = "https://github.com/kyoheiu/felix";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/kyoheiu/felix/blob/v${version}/CHANGELOG.md";
|
2022-10-06 18:32:54 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "fx";
|
|
|
|
};
|
|
|
|
}
|