d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, bzip2
|
|
, zstd
|
|
, zoxide
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "felix";
|
|
version = "2.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kyoheiu";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-3oXF9BG3BjGOeXqJHo3+fpcqcTOKrLED7Y3VQ06tnNA=";
|
|
};
|
|
|
|
cargoHash = "sha256-2XMVappHbf1ZPtQO8zy8Z0n9wshDM4d30qkmG8OBoUY=";
|
|
|
|
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=state::tests::test_has_write_permission"
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|