git-repo: 2.59 -> 2.65
Following changes have been done: * Update to v2.65 * Use upstream git repository (Previous GitHub mirror has been archived) * Add custom update script * Add myself as maintainer Signed-off-by: David Wronek <david.wronek@mainlining.org>
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchFromGitiles,
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
python3,
|
||||
git,
|
||||
gnupg,
|
||||
@@ -13,13 +12,12 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "git-repo";
|
||||
version = "2.59";
|
||||
version = "2.65";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aosp-mirror";
|
||||
repo = "tools_repo";
|
||||
src = fetchFromGitiles {
|
||||
url = "https://android.googlesource.com/tools/repo";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-5ffk5B4ZA/Wy2bQNahFaXPFRSZdKz5t6TaGbN00mfxo=";
|
||||
hash = "sha256-ToJj5WS74vwCAX53UB5zgy1K54y1gNK+1d4qQLmp1L8=";
|
||||
};
|
||||
|
||||
# Fix 'NameError: name 'ssl' is not defined'
|
||||
@@ -57,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
updateScript = ./update.sh;
|
||||
};
|
||||
|
||||
meta = {
|
||||
@@ -70,7 +68,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
homepage = "https://android.googlesource.com/tools/repo";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ otavio ];
|
||||
maintainers = with lib.maintainers; [
|
||||
otavio
|
||||
ungeskriptet
|
||||
];
|
||||
platforms = lib.platforms.unix;
|
||||
mainProgram = "repo";
|
||||
};
|
||||
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p common-updater-scripts git
|
||||
set -euo pipefail
|
||||
latest_tag=$(list-git-tags --url="https://android.googlesource.com/tools/repo" | sort -V | tail -n1)
|
||||
latest_tag=${latest_tag##v}
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
update-source-version git-repo "$latest_tag"
|
||||
Reference in New Issue
Block a user