koto: init at 0.15.2 (#382328)
This commit is contained in:
commit
f0295845e5
44
pkgs/by-name/ko/koto/package.nix
Normal file
44
pkgs/by-name/ko/koto/package.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitHub,
|
||||||
|
yq,
|
||||||
|
versionCheckHook,
|
||||||
|
nix-update-script,
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "koto";
|
||||||
|
version = "0.15.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "koto-lang";
|
||||||
|
repo = "koto";
|
||||||
|
tag = "v${version}";
|
||||||
|
hash = "sha256-T8SjNeoTANAcT+uAdgzBRMK0LbC038cpKFoCFHgsp8k=";
|
||||||
|
};
|
||||||
|
|
||||||
|
useFetchCargoVendor = true;
|
||||||
|
cargoHash = "sha256-kIjDY27ot1dN3L8TKaBEQWDzo7+QIFvhdmi1YN9TofI=";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
${lib.getExe' yq "tomlq"} -ti 'del(.bench)' crates/koto/Cargo.toml
|
||||||
|
'';
|
||||||
|
|
||||||
|
cargoBuildFlags = [ "--package=koto_cli" ];
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
versionCheckProgramArg = "--version";
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Simple, expressive, embeddable programming language";
|
||||||
|
homepage = "https://github.com/koto-lang/koto";
|
||||||
|
changelog = "https://github.com/koto-lang/koto/blob/${src.rev}/CHANGELOG.md";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ defelo ];
|
||||||
|
mainProgram = "koto";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user