2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
nix-update-script,
|
|
|
|
}: let
|
|
|
|
pname = "git-upstream";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "1.2.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "9999years";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-GnsqZSztDLXMO4T16nfcOKMKXap88CJzJ5nObzGwhMA=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
cargoHash = "sha256-a12C/fpeo0ZJ0MFQlKHVZER9dVrXF95YI1i8MwCTCJo=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
meta = {
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/9999years/git-upstream";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/9999years/git-upstream/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Shortcut for `git push --set-upstream`";
|
2024-09-26 11:04:55 +00:00
|
|
|
license = [lib.licenses.mit];
|
|
|
|
maintainers = [lib.maintainers._9999years];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "git-upstream";
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
}
|