Fabian Affolter 2024-10-13 23:19:04 +02:00
parent 564451a037
commit c4c40cd72a

View File

@ -1,37 +1,28 @@
{ lib
, rustPlatform
, fetchFromGitHub
, fetchpatch2
, pkg-config
, bzip2
, libgit2
, nix-update-script
, zlib
, zstd
, zoxide
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
bzip2,
libgit2,
nix-update-script,
zlib,
zstd,
zoxide,
}:
rustPlatform.buildRustPackage rec {
pname = "felix";
version = "2.13.0";
version = "2.14.0";
src = fetchFromGitHub {
owner = "kyoheiu";
repo = "felix";
rev = "v${version}";
hash = "sha256-7KuL3YkKhjcZSMSipbNITaA9/MGo54f3lz3fVOgy52s=";
rev = "refs/tags/v${version}";
hash = "sha256-PcC0lZ41qTVE4V3VdwBq83qYfEJO3RJouuS2+bpcBfo=";
};
cargoPatches = [
# https://github.com/kyoheiu/felix/pull/292
(fetchpatch2 {
name = "update-cargo.lock-for-2.13.0.patch";
url = "https://github.com/kyoheiu/felix/commit/5085b147103878ee8138d4fcf7b204223ba2c3eb.patch";
hash = "sha256-7Bga9hcJCXExA/jnrR/HuZgOOVBbWs1tdTwxldcvdU8=";
})
];
cargoHash = "sha256-FX3AsahU5ZLMuylwo1jihP9G4Dw1SFv1oMXcuOqDTF8=";
cargoHash = "sha256-4tvk7H2CrTx9m1f0PLnNv+LWg6oIGTUfirRhIaz2lHo=";
nativeBuildInputs = [ pkg-config ];