From 85a3655ba712fac21bed51fe7b0347545df3cb2a Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Wed, 9 Apr 2025 19:04:21 -0400 Subject: [PATCH] espup: cleanup --- pkgs/by-name/es/espup/package.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/es/espup/package.nix b/pkgs/by-name/es/espup/package.nix index 69b280ab5fe0..94a47fd236b0 100644 --- a/pkgs/by-name/es/espup/package.nix +++ b/pkgs/by-name/es/espup/package.nix @@ -11,17 +11,17 @@ stdenv, darwin, testers, - espup, + nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "espup"; version = "0.15.0"; src = fetchFromGitHub { owner = "esp-rs"; repo = "espup"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-1muyZd7jhhDkif/8mX7QZEMnV105jNMHT0RaZPinD/4="; }; @@ -67,21 +67,24 @@ rustPlatform.buildRustPackage rec { --zsh <($out/bin/espup completions zsh) ''; - passthru.tests.version = testers.testVersion { - package = espup; + passthru = { + updateScript = nix-update-script { }; + tests.version = testers.testVersion { + package = finalAttrs.finalPackage; + }; }; - meta = with lib; { + meta = { description = "Tool for installing and maintaining Espressif Rust ecosystem"; homepage = "https://github.com/esp-rs/espup/"; - license = with licenses; [ + license = with lib.licenses; [ mit asl20 ]; - maintainers = with maintainers; [ + maintainers = with lib.maintainers; [ knightpp beeb ]; mainProgram = "espup"; }; -} +})