mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
git-upstream: init at 1.1.0
This commit is contained in:
parent
3c9cdd2965
commit
149d01aec5
31
pkgs/by-name/gi/git-upstream/package.nix
Normal file
31
pkgs/by-name/gi/git-upstream/package.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
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 = "A shortcut for `git push --set-upstream`";
|
||||
license = [licenses.mit];
|
||||
maintainers = [maintainers._9999years];
|
||||
mainProgram = "git-upstream";
|
||||
};
|
||||
|
||||
passthru.updateScript = nix-update-script {};
|
||||
}
|
Loading…
Reference in New Issue
Block a user