Unverified Commit 3a20a5c2 authored by awwpotato's avatar awwpotato
Browse files

gleam: migrate to finalAttrs

parent aea026de
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -12,14 +12,14 @@
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "gleam";
  version = "1.10.0";

  src = fetchFromGitHub {
    owner = "gleam-lang";
    repo = pname;
    tag = "v${version}";
    repo = "gleam";
    tag = "v${finalAttrs.version}";
    hash = "sha256-0qK9dWkKnoXbIIBMN3p5noPEke/bgC8Bjtmf6lwtyr4=";
  };

@@ -48,8 +48,8 @@ rustPlatform.buildRustPackage rec {
    description = "Statically typed language for the Erlang VM";
    mainProgram = "gleam";
    homepage = "https://gleam.run/";
    changelog = "https://github.com/gleam-lang/gleam/blob/v${version}/CHANGELOG.md";
    license = licenses.asl20;
    maintainers = teams.beam.members ++ [ lib.maintainers.philtaken ];
    changelog = "https://github.com/gleam-lang/gleam/blob/v${finalAttrs.version}/CHANGELOG.md";
  };
}
})