From 4aa531c175eef4622387017ea7633afb16e01c0d Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 30 Jan 2025 22:30:19 +0100 Subject: [PATCH] pagefind: fix build --- pkgs/applications/misc/pagefind/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/pagefind/default.nix b/pkgs/applications/misc/pagefind/default.nix index 6b9b6046d4f1..fd8505d21977 100644 --- a/pkgs/applications/misc/pagefind/default.nix +++ b/pkgs/applications/misc/pagefind/default.nix @@ -82,8 +82,9 @@ rustPlatform.buildRustPackage rec { # patch a build-time dependency download ( - cd $cargoDepsCopy/lindera-unidic - oldHash=$(sha256sum build.rs | cut -d " " -f 1) + realpath $cargoDepsCopy/* | grep lindera-unidic # debug for when version number changes + cd $cargoDepsCopy/lindera-unidic-0.32.2 + #oldHash=$(sha256sum build.rs | cut -d " " -f 1) # serve lindera-unidic on localhost vacant port httplz_port="${ @@ -102,8 +103,9 @@ rustPlatform.buildRustPackage rec { "https://dlwqk3ibdg1xh.cloudfront.net/unidic-mecab-2.1.2.tar.gz" \ "http://localhost:$httplz_port/unidic-mecab-2.1.2.tar.gz" - newHash=$(sha256sum build.rs | cut -d " " -f 1) - substituteInPlace .cargo-checksum.json --replace-fail $oldHash $newHash + # not needed with useFetchCargoVendor=true, but kept in case it is required again + #newHash=$(sha256sum build.rs | cut -d " " -f 1) + #substituteInPlace .cargo-checksum.json --replace-fail $oldHash $newHash ) '';