File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ rustPlatform ,
4+ fetchFromGitHub ,
5+ yq ,
6+ versionCheckHook ,
7+ nix-update-script ,
8+ } :
9+
10+ rustPlatform . buildRustPackage rec {
11+ pname = "koto" ;
12+ version = "0.15.2" ;
13+
14+ src = fetchFromGitHub {
15+ owner = "koto-lang" ;
16+ repo = "koto" ;
17+ tag = "v${ version } " ;
18+ hash = "sha256-T8SjNeoTANAcT+uAdgzBRMK0LbC038cpKFoCFHgsp8k=" ;
19+ } ;
20+
21+ useFetchCargoVendor = true ;
22+ cargoHash = "sha256-kIjDY27ot1dN3L8TKaBEQWDzo7+QIFvhdmi1YN9TofI=" ;
23+
24+ postPatch = ''
25+ ${ lib . getExe' yq "tomlq" } -ti 'del(.bench)' crates/koto/Cargo.toml
26+ '' ;
27+
28+ cargoBuildFlags = [ "--package=koto_cli" ] ;
29+
30+ nativeInstallCheckInputs = [ versionCheckHook ] ;
31+ versionCheckProgramArg = "--version" ;
32+ doInstallCheck = true ;
33+
34+ passthru . updateScript = nix-update-script { } ;
35+
36+ meta = {
37+ description = "Simple, expressive, embeddable programming language" ;
38+ homepage = "https://github.com/koto-lang/koto" ;
39+ changelog = "https://github.com/koto-lang/koto/blob/${ src . rev } /CHANGELOG.md" ;
40+ license = lib . licenses . mit ;
41+ maintainers = with lib . maintainers ; [ defelo ] ;
42+ mainProgram = "koto" ;
43+ } ;
44+ }
You can’t perform that action at this time.
0 commit comments