about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2024-08-14 16:18:05 +0200
committerPeder Bergebakken Sundt <pbsds@hotmail.com>2024-08-14 16:18:05 +0200
commit5bda38840918753e642a204e3de46de71aa0e9d7 (patch)
tree83183ea0c6fb37ae902b858a11c684dcc6e72d18
parent7bf351fe7ee8b3bde921755dcc928c3c9f35ba56 (diff)
pagefind: update time crate, unbreak
-rw-r--r--pkgs/applications/misc/pagefind/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/misc/pagefind/default.nix b/pkgs/applications/misc/pagefind/default.nix
index 7ee28983d2f51..66ebad25ec361 100644
--- a/pkgs/applications/misc/pagefind/default.nix
+++ b/pkgs/applications/misc/pagefind/default.nix
@@ -9,6 +9,7 @@
 , rustc
 , wasm-bindgen-cli
 , wasm-pack
+, fetchpatch
 }:
 
 let
@@ -32,7 +33,15 @@ rustPlatform.buildRustPackage rec {
     hash = "sha256-pcgcu9zylSTjj5rxNff+afFBWVpN5sGtlpadG1wb93M=";
   };
 
-  cargoHash = "sha256-E4gjG5GrVWkMKgjQiAvEiSy2/tx/yHKe+5isveMZ9tU=";
+  cargoPatches = [
+    (fetchpatch { # https://github.com/CloudCannon/pagefind/pull/680
+      name = "cargo-update-time.patch";
+      url = "https://github.com/CloudCannon/pagefind/commit/e6778572d225316803180db822f5cc12a936acd2.patch";
+      hash = "sha256-XHpHA1hPIe+wjDQ6LE9hn2jn3eMBOK9Yoo920jfH9do=";
+    })
+  ];
+
+  cargoHash = "sha256-KWWln7QCRo02cOgHy5JNERGS0CvvgsPISwkTZeeNEkg=";
 
   env.npmDeps_web_js = fetchNpmDeps {
     name = "npm-deps-web-js";