Skip to content

Commit 85a3655

Browse files
committed
espup: cleanup
1 parent 1f066cc commit 85a3655

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

pkgs/by-name/es/espup/package.nix

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
stdenv,
1212
darwin,
1313
testers,
14-
espup,
14+
nix-update-script,
1515
}:
1616

17-
rustPlatform.buildRustPackage rec {
17+
rustPlatform.buildRustPackage (finalAttrs: {
1818
pname = "espup";
1919
version = "0.15.0";
2020

2121
src = fetchFromGitHub {
2222
owner = "esp-rs";
2323
repo = "espup";
24-
rev = "v${version}";
24+
tag = "v${finalAttrs.version}";
2525
hash = "sha256-1muyZd7jhhDkif/8mX7QZEMnV105jNMHT0RaZPinD/4=";
2626
};
2727

@@ -67,21 +67,24 @@ rustPlatform.buildRustPackage rec {
6767
--zsh <($out/bin/espup completions zsh)
6868
'';
6969

70-
passthru.tests.version = testers.testVersion {
71-
package = espup;
70+
passthru = {
71+
updateScript = nix-update-script { };
72+
tests.version = testers.testVersion {
73+
package = finalAttrs.finalPackage;
74+
};
7275
};
7376

74-
meta = with lib; {
77+
meta = {
7578
description = "Tool for installing and maintaining Espressif Rust ecosystem";
7679
homepage = "https://github.com/esp-rs/espup/";
77-
license = with licenses; [
80+
license = with lib.licenses; [
7881
mit
7982
asl20
8083
];
81-
maintainers = with maintainers; [
84+
maintainers = with lib.maintainers; [
8285
knightpp
8386
beeb
8487
];
8588
mainProgram = "espup";
8689
};
87-
}
90+
})

0 commit comments

Comments
 (0)