Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
1018 B
Nix
40 lines
1018 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
testers,
|
|
nix-update-script,
|
|
moonpalace,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "moonpalace";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MoonshotAI";
|
|
repo = "moonpalace";
|
|
tag = "v${version}";
|
|
hash = "sha256-30ibs49srFwTsnjbtvLUNQ79yA/vZJdlHQZ8ERi5lls=";
|
|
};
|
|
vendorHash = "sha256-e5G+28cgUJvUpS1CX/Tinn3gDK8fNEcJi8uv9xMR+5o=";
|
|
|
|
passthru = {
|
|
tests.version = testers.testVersion {
|
|
package = moonpalace;
|
|
version = "v${moonpalace.version}";
|
|
command = "HOME=$(mktemp -d) moonpalace --version";
|
|
};
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "API debugging tool provided by Moonshot AI";
|
|
homepage = "https://github.com/MoonshotAI/moonpalace";
|
|
changelog = "https://github.com/MoonshotAI/moonpalace/releases/tag/v${version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ xiaoxiangmoe ];
|
|
mainProgram = "moonpalace";
|
|
};
|
|
}
|