diff --git a/pkgs/by-name/es/espup/package.nix b/pkgs/by-name/es/espup/package.nix index cc0916d2f808..94a47fd236b0 100644 --- a/pkgs/by-name/es/espup/package.nix +++ b/pkgs/by-name/es/espup/package.nix @@ -11,23 +11,22 @@ stdenv, darwin, testers, - espup, - gitUpdater, + nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "espup"; - version = "0.14.1"; + version = "0.15.0"; src = fetchFromGitHub { owner = "esp-rs"; repo = "espup"; - rev = "v${version}"; - hash = "sha256-sPWGpQi9JrkdaPV2jvwaY9zjb8urK+ibhvxw/CC2UOQ="; + tag = "v${finalAttrs.version}"; + hash = "sha256-1muyZd7jhhDkif/8mX7QZEMnV105jNMHT0RaZPinD/4="; }; useFetchCargoVendor = true; - cargoHash = "sha256-k6hczvuEvutUWOrKYFUltA0ZD+AHa8E0+5YW1+0TKQA="; + cargoHash = "sha256-fX6nl0DZZNiH/VWR9eWMnTuBW9r1jz3IWIxbOGC4Amg="; nativeBuildInputs = [ pkg-config @@ -68,22 +67,24 @@ rustPlatform.buildRustPackage rec { --zsh <($out/bin/espup completions zsh) ''; - passthru.updateScript = gitUpdater { }; - 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"; }; -} +})