koto: 0.15.2 -> 0.15.3, refactor (#398599)

This commit is contained in:
Weijia Wang
2025-04-15 23:47:57 +02:00
committed by GitHub

View File

@@ -9,22 +9,26 @@
rustPlatform.buildRustPackage (finalAttrs: {
pname = "koto";
version = "0.15.2";
version = "0.15.3";
src = fetchFromGitHub {
owner = "koto-lang";
repo = "koto";
tag = "v${finalAttrs.version}";
hash = "sha256-T8SjNeoTANAcT+uAdgzBRMK0LbC038cpKFoCFHgsp8k=";
hash = "sha256-sFADZj0mBe8TQ2x6NeXLqvvXK13WhVGD2anGWoWrSZw=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-kIjDY27ot1dN3L8TKaBEQWDzo7+QIFvhdmi1YN9TofI=";
cargoHash = "sha256-Ok4rgqiQ7N5knXdb0Mfn3fYPPLXoRtOZVv8RvWR2h3k=";
postPatch = ''
${lib.getExe' yq "tomlq"} -ti 'del(.bench)' crates/koto/Cargo.toml
tomlq -ti 'del(.bench)' crates/koto/Cargo.toml
'';
nativeBuildInputs = [
yq # for `tomlq`
];
cargoBuildFlags = [ "--package=koto_cli" ];
nativeInstallCheckInputs = [ versionCheckHook ];
@@ -36,7 +40,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
meta = {
description = "Simple, expressive, embeddable programming language";
homepage = "https://github.com/koto-lang/koto";
changelog = "https://github.com/koto-lang/koto/blob/${finalAttrs.src.rev}/CHANGELOG.md";
changelog = "https://github.com/koto-lang/koto/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ defelo ];
mainProgram = "koto";