summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksana <me@aleksana.moe>2024-10-14 15:58:51 +0800
committerGitHub <noreply@github.com>2024-10-14 15:58:51 +0800
commit6df22105541f8ab4e1862eca0ce68b8e6781bf35 (patch)
tree2d958dbe4a7e1791ae1fd06554aadcc5af628e38
parentexult: 1.8 -> 1.10.1 (#347623) (diff)
parentyofi: fix build (diff)
downloadnixpkgs-6df22105541f8ab4e1862eca0ce68b8e6781bf35.tar.gz
yofi: fix build (#344811)
-rw-r--r--pkgs/by-name/yo/yofi/package.nix36
1 files changed, 25 insertions, 11 deletions
diff --git a/pkgs/by-name/yo/yofi/package.nix b/pkgs/by-name/yo/yofi/package.nix
index 5fa38d280aef..5494c8369d24 100644
--- a/pkgs/by-name/yo/yofi/package.nix
+++ b/pkgs/by-name/yo/yofi/package.nix
@@ -1,12 +1,14 @@
-{ lib
-, fetchFromGitHub
-, rustPlatform
-, autoPatchelfHook
-, fontconfig
-, libxkbcommon
-, pkg-config
-, libgcc
-, wayland
+{
+ lib,
+ fetchFromGitHub,
+ fetchpatch,
+ rustPlatform,
+ autoPatchelfHook,
+ fontconfig,
+ libxkbcommon,
+ pkg-config,
+ libgcc,
+ wayland,
}:
rustPlatform.buildRustPackage rec {
pname = "yofi";
@@ -19,7 +21,16 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-cepAZyA4RBgqeF20g6YOlZTM0aRqErw17yuQ3U24UEg=";
};
- cargoHash = "sha256-iSy/y1iwhR8x3wDIfazMeROSrJ8uRyA10hoNo6y2OQc=";
+ cargoPatches = [
+ (fetchpatch {
+ name = "bump-time-1.80.0.patch";
+ url = "https://github.com/l4l/yofi/commit/438e180bf5132d29a6846e830d7227cb996ade3e.patch";
+ hash = "sha256-o/kwQRIG6MASGYnepb96pL1qfI+/CNTqc5maDPjSZXk=";
+ })
+ ];
+
+ cargoHash = "sha256-GA6rFet0GIYFR/8WsWteMDwVRz/KyyxlFQOz/lNX7Rk=";
+
nativeBuildInputs = [
autoPatchelfHook
pkg-config
@@ -31,7 +42,10 @@ rustPlatform.buildRustPackage rec {
];
appendRunpaths = [
- (lib.makeLibraryPath [ fontconfig wayland ])
+ (lib.makeLibraryPath [
+ fontconfig
+ wayland
+ ])
];
checkFlags = [