depot/third_party/nixpkgs/pkgs/applications/file-managers/felix-fm/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

48 lines
1 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, bzip2
, zstd
, zoxide
}:
rustPlatform.buildRustPackage rec {
pname = "felix";
version = "2.1.0";
src = fetchFromGitHub {
owner = "kyoheiu";
repo = pname;
rev = "v${version}";
sha256 = "sha256-CLCzRnczItvnjXtS4BOc9FeBCPQm102U0bDIWAZPzYc=";
};
cargoSha256 = "sha256-H+uOo3Cm1nFPYyA0qOAcaD4mfSd4Uaq5U20t6V4mmcg=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
bzip2
zstd
];
checkInputs = [ zoxide ];
buildFeatures = [ "zstd/pkg-config" ];
checkFlags = [
# extra test files not shipped with the repository
"--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";
};
}