depot/third_party/nixpkgs/pkgs/by-name/gi/git-upstream/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

34 lines
840 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
nix-update-script,
}:
let
pname = "git-upstream";
version = "1.5.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "9999years";
repo = pname;
tag = "v${version}";
hash = "sha256-ooqz2Xp/nljx2+zQsc/RjVbGG/5YTeggU6pB8lGK0o8=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-oIrUjb+yJgDR5GYrG3hPLpXYJynR9eeX00emcrcjmZY=";
meta = {
homepage = "https://github.com/9999years/git-upstream";
changelog = "https://github.com/9999years/git-upstream/releases/tag/v${version}";
description = "Shortcut for `git push --set-upstream`";
license = [ lib.licenses.mit ];
maintainers = [ lib.maintainers._9999years ];
mainProgram = "git-upstream";
};
passthru.updateScript = nix-update-script { };
}