diff --git a/pkgs/by-name/ma/mago/package.nix b/pkgs/by-name/ma/mago/package.nix index e3ae5a1b4ce6..d0d1057edcec 100644 --- a/pkgs/by-name/ma/mago/package.nix +++ b/pkgs/by-name/ma/mago/package.nix @@ -8,15 +8,15 @@ mago, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "mago"; version = "0.26.1"; src = fetchFromGitHub { owner = "carthage-software"; repo = "mago"; - tag = version; hash = "sha256-9WrSHjs1EdDqTXuB0HbIzQCQWp4okkdy3jTVl4J2wUg="; + tag = finalAttrs.version; }; cargoHash = "sha256-7/kbuWcy1IwAL7m87WPgyhwPidLL9K65u6ybpj0Ryl0="; @@ -39,11 +39,11 @@ rustPlatform.buildRustPackage rec { }; meta = { - changelog = "https://github.com/carthage-software/mago/releases/tag/${version}"; + changelog = "https://github.com/carthage-software/mago/releases/tag/${finalAttrs.version}"; description = "Toolchain for PHP that aims to provide a set of tools to help developers write better code"; homepage = "https://github.com/carthage-software/mago"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ gaelreyrol ]; mainProgram = "mago"; }; -} +})