Skip to content

Commit

Permalink
pagefind: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds authored and alyssais committed Jan 31, 2025
1 parent ece31b1 commit 4aa531c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkgs/applications/misc/pagefind/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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="${
Expand All @@ -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
)
'';

Expand Down

0 comments on commit 4aa531c

Please sign in to comment.