depot/third_party/nixpkgs/pkgs/applications/file-managers/felix-fm/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

49 lines
1.1 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, bzip2
, zstd
, zoxide
}:
rustPlatform.buildRustPackage rec {
pname = "felix";
version = "2.2.1";
src = fetchFromGitHub {
owner = "kyoheiu";
repo = pname;
rev = "v${version}";
sha256 = "sha256-DHFQLC89ZNf6wk/L9cmEj1qSfQhqFAmQ9msYTRy0y00=";
};
cargoSha256 = "sha256-9AC8muMKc0eU3g4uQvWscIULNetlgEs6ZVsMr4dpwqk=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
bzip2
zstd
];
checkInputs = [ 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";
};
}