diff --git a/pkgs/by-name/du/dump_syms/package.nix b/pkgs/by-name/du/dump_syms/package.nix index c43cd6a9a7dd..92e047b1b431 100644 --- a/pkgs/by-name/du/dump_syms/package.nix +++ b/pkgs/by-name/du/dump_syms/package.nix @@ -12,17 +12,14 @@ thunderbird-unwrapped, }: -let +rustPlatform.buildRustPackage (finalAttrs: { pname = "dump_syms"; version = "2.3.6"; -in -rustPlatform.buildRustPackage { - inherit pname version; src = fetchFromGitHub { owner = "mozilla"; repo = "dump_syms"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-ABfjLV6WMIiaSiyfR/uxL6+VyO/pO6oZjbJSAxRGXuE="; }; @@ -50,11 +47,11 @@ rustPlatform.buildRustPackage { __structuredAttrs = true; meta = { - changelog = "https://github.com/mozilla/dump_syms/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/mozilla/dump_syms/blob/v${finalAttrs.version}/CHANGELOG.md"; description = "Command-line utility for parsing the debugging information the compiler provides in ELF or stand-alone PDB files"; mainProgram = "dump_syms"; license = lib.licenses.asl20; homepage = "https://github.com/mozilla/dump_syms/"; maintainers = with lib.maintainers; [ hexa ]; }; -} +})