Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 33 lines 819 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 nix-update-script, 6}: 7let 8 pname = "git-upstream"; 9 version = "1.6.0"; 10in 11rustPlatform.buildRustPackage { 12 inherit pname version; 13 14 src = fetchFromGitHub { 15 owner = "9999years"; 16 repo = "git-upstream"; 17 tag = "v${version}"; 18 hash = "sha256-rdxpo1OZD/fpBm76zD7U/YeZOBpliKXJN87LJkw6A28="; 19 }; 20 21 cargoHash = "sha256-7h0aWb7xJjDJedQp9xXc+deW0hM+qBJcG36Sd8fo+Fg="; 22 23 meta = { 24 homepage = "https://github.com/9999years/git-upstream"; 25 changelog = "https://github.com/9999years/git-upstream/releases/tag/v${version}"; 26 description = "Shortcut for `git push --set-upstream`"; 27 license = [ lib.licenses.mit ]; 28 maintainers = [ lib.maintainers._9999years ]; 29 mainProgram = "git-upstream"; 30 }; 31 32 passthru.updateScript = nix-update-script { }; 33}