harmonist: fix Darwin src hash

Unfortunate weird darwin case-insensitivity bug...
map-d.png vs map-D.png :(

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-08-14 20:19:08 -07:00
parent e2a6f2e39c
commit 381bc104b0

View File

@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildGoModule,
fetchFromCodeberg,
}:
@@ -12,7 +13,13 @@ buildGoModule (finalAttrs: {
owner = "anaseto";
repo = "harmonist";
tag = "v${finalAttrs.version}";
hash = "sha256-9cEKkvQze+hg4CwDe5epTpuQPevylwnSP5xQAVGJ/wQ=";
hash =
# darwin's case-insensitive filesystem produces a different source hash because of map-d vs map-D
# is this a correctness issue?
if stdenv.hostPlatform.isDarwin then
"sha256-yNPGoCvCdrmFaUjtA1p8pgPIC9ekIizhG6oMiYRFYGA="
else
"sha256-9cEKkvQze+hg4CwDe5epTpuQPevylwnSP5xQAVGJ/wQ=";
};
vendorHash = "sha256-wibNLDdykV2psOnJbMKu0EZSrrhKRxrN/OTWXmUz2FM=";