Unverified Commit 3a989201 authored by Defelo's avatar Defelo
Browse files

koto: use finalAttrs pattern

parent 8fffefa8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -7,14 +7,14 @@
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "koto";
  version = "0.15.2";

  src = fetchFromGitHub {
    owner = "koto-lang";
    repo = "koto";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-T8SjNeoTANAcT+uAdgzBRMK0LbC038cpKFoCFHgsp8k=";
  };

@@ -36,9 +36,9 @@ rustPlatform.buildRustPackage rec {
  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";
    changelog = "https://github.com/koto-lang/koto/blob/${finalAttrs.src.rev}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ defelo ];
    mainProgram = "koto";
  };
}
})