Merge pull request from figsoda/felix

felix: 2.0.1 -> 2.1.0
This commit is contained in:
figsoda 2022-11-19 20:17:19 -05:00 committed by GitHub
commit dd634477b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,46 @@
{ lib, rustPlatform, fetchFromGitHub, zoxide }: { lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, bzip2
, zstd
, zoxide
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "felix"; pname = "felix";
version = "2.0.1"; version = "2.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kyoheiu"; owner = "kyoheiu";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-HD6KsPI4ZeJxQ+jbv5bWzTGQBHa9wGzhZBLQedcL5WI="; sha256 = "sha256-CLCzRnczItvnjXtS4BOc9FeBCPQm102U0bDIWAZPzYc=";
}; };
cargoSha256 = "sha256-Q24dyCJBy27B3aI7ZEQnjTgLIB7XhltYeGBpmfy0DwE="; cargoSha256 = "sha256-H+uOo3Cm1nFPYyA0qOAcaD4mfSd4Uaq5U20t6V4mmcg=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
bzip2
zstd
];
checkInputs = [ zoxide ]; 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; { meta = with lib; {
description = "A tui file manager with vim-like key mapping"; description = "A tui file manager with vim-like key mapping";
homepage = "https://github.com/kyoheiu/felix"; homepage = "https://github.com/kyoheiu/felix";
changelog = "https://github.com/kyoheiu/felix/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ figsoda ]; maintainers = with maintainers; [ figsoda ];
mainProgram = "fx"; mainProgram = "fx";