mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 17:04:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, bzip2
|
|
, zstd
|
|
, zoxide
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "felix";
|
|
version = "2.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kyoheiu";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-VQTZj2BCdV2TnXrYRaJqrf9sR35zsojmeoe7t+I3kyQ=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-jH2BaPiGanBOlOU7JQZ0c0ObCaVURpjvmx2m92Fbdm4=";
|
|
|
|
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";
|
|
};
|
|
}
|