git-upstream: refactor

this shouldn't create any rebuilds
This commit is contained in:
quantenzitrone
2026-02-07 09:48:41 +01:00
parent 4562924698
commit 1cf973f1c3
+5 -7
View File
@@ -4,17 +4,15 @@
rustPlatform,
nix-update-script,
}:
let
rustPlatform.buildRustPackage (finalAttrs: {
pname = "git-upstream";
version = "1.6.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "9999years";
repo = "git-upstream";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-rdxpo1OZD/fpBm76zD7U/YeZOBpliKXJN87LJkw6A28=";
};
@@ -22,7 +20,7 @@ rustPlatform.buildRustPackage {
meta = {
homepage = "https://github.com/9999years/git-upstream";
changelog = "https://github.com/9999years/git-upstream/releases/tag/v${version}";
changelog = "https://github.com/9999years/git-upstream/releases/tag/v${finalAttrs.version}";
description = "Shortcut for `git push --set-upstream`";
license = [ lib.licenses.mit ];
maintainers = [ lib.maintainers._9999years ];
@@ -30,4 +28,4 @@ rustPlatform.buildRustPackage {
};
passthru.updateScript = nix-update-script { };
}
})