anytype-heart: use finalAttrs

This commit is contained in:
Kira Bruneau
2025-09-07 21:35:08 -04:00
parent 70200cfca0
commit 8417b77afa

View File

@@ -10,17 +10,6 @@
}:
let
pname = "anytype-heart";
# Use only versions specified in anytype-ts middleware.version file:
# https://github.com/anyproto/anytype-ts/blob/v<anytype-ts-version>/middleware.version
version = "0.43.0-rc02";
src = fetchFromGitHub {
owner = "anyproto";
repo = "anytype-heart";
tag = "v${version}";
hash = "sha256-hqDwzW1Tl44ipL1EAwlXUoKaQ0Wvfa2rtZMQy4pgQ8k=";
};
arch =
{
# https://github.com/anyproto/anytype-heart/blob/f33a6b09e9e4e597f8ddf845fc4d6fe2ef335622/pkg/lib/localstore/ftsearch/ftsearchtantivy.go#L3
@@ -31,10 +20,20 @@ let
}
.${stdenv.hostPlatform.system}
or (throw "anytype-heart not supported on ${stdenv.hostPlatform.system}");
in
buildGoModule {
inherit pname version src;
buildGoModule (finalAttrs: {
pname = "anytype-heart";
# Use only versions specified in anytype-ts middleware.version file:
# https://github.com/anyproto/anytype-ts/blob/v<anytype-ts-version>/middleware.version
version = "0.43.0-rc02";
src = fetchFromGitHub {
owner = "anyproto";
repo = "anytype-heart";
tag = "v${finalAttrs.version}";
hash = "sha256-hqDwzW1Tl44ipL1EAwlXUoKaQ0Wvfa2rtZMQy4pgQ8k=";
};
vendorHash = "sha256-Rs+CusvMksyXUplGk09J4CiFgl/D4KtsI9C15dSCjOI=";
@@ -96,4 +95,4 @@ buildGoModule {
"aarch64-darwin"
];
};
}
})