blob: d94ca080b630e174ac1888a983d7d401abfbef38 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
lib,
fetchFromGitHub,
rustPlatform,
nix-update-script,
}: let
pname = "git-upstream";
version = "1.2.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "9999years";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-GnsqZSztDLXMO4T16nfcOKMKXap88CJzJ5nObzGwhMA=";
};
cargoHash = "sha256-a12C/fpeo0ZJ0MFQlKHVZER9dVrXF95YI1i8MwCTCJo=";
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 {};
}
|