depot/third_party/nixpkgs/pkgs/by-name/gi/git-upstream/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
767 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
nix-update-script,
}: let
pname = "git-upstream";
version = "1.1.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "9999years";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Pq0Z1WwrTP7dCwk6V/E0zu9sLLWr3kNuT3aJRZuRzhI=";
};
cargoHash = "sha256-jNpleFrOvt1m2TXTeBXfhTSjWNpCknNoKooF2xsO46w=";
meta = with lib; {
homepage = "https://github.com/9999years/git-upstream";
description = "Shortcut for `git push --set-upstream`";
license = [licenses.mit];
maintainers = [maintainers._9999years];
mainProgram = "git-upstream";
};
passthru.updateScript = nix-update-script {};
}