Unverified Commit ac25dfd6 authored by Defelo's avatar Defelo
Browse files

koto: refactor

parent 1ccde680
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -22,9 +22,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
  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";