Loading pkgs/by-name/gi/gitaly/dont-clone-git-repo.patch 0 → 100644 +19 −0 Original line number Diff line number Diff line diff --git a/Makefile b/Makefile index e75c22e80b..f702da6f80 100644 --- a/Makefile +++ b/Makefile @@ -757,12 +757,8 @@ # otherwise try to rebuild all targets depending on it whenever we build # something else. We thus depend on the Makefile instead. ${DEPENDENCY_DIR}/git-%/Makefile: ${DEPENDENCY_DIR}/git-%.version - ${Q}${GIT} -c init.defaultBranch=master init ${GIT_QUIET} "${@D}" - ${Q}${GIT} -C "${@D}" config remote.origin.url ${GIT_REPO_URL} - ${Q}${GIT} -C "${@D}" config remote.origin.tagOpt --no-tags - ${Q}${GIT} -C "${@D}" fetch --depth 1 ${GIT_QUIET} origin ${GIT_VERSION} - ${Q}${GIT} -C "${@D}" reset --hard - ${Q}${GIT} -C "${@D}" checkout ${GIT_QUIET} --detach FETCH_HEAD + cp -r ${GIT_REPO_PATH} "${@D}" + chmod -R oga+rw "${@D}" ifeq ($(OVERRIDE_GIT_VERSION),) ${Q}rm -f "${@D}"/version else pkgs/by-name/gi/gitaly/git-data.json +1 −1 Original line number Diff line number Diff line { "version": "2.52-a37bb2ae", "rev": "a37bb2ae6c6659cf7cefd0412759fca5202a823d", "hash": "sha256-7yUjXiaFwPG9o4n+IieYNTJKtzyawQFHooNrikpbiEM=" "hash": "sha256-A1FOzmVe2e73pie0WYJPwsKOb5BGNrusGy0wXa9ruvI=" } pkgs/by-name/gi/gitaly/git.nix +10 −6 Original line number Diff line number Diff line Loading @@ -13,16 +13,15 @@ let data = lib.importJSON ./git-data.json; in stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: { inherit (data) version; pname = "gitaly-git"; # `src` attribute for nix-update src = fetchFromGitLab { owner = "gitlab-org"; repo = "git"; inherit (data) rev hash; leaveDotGit = true; fetchSubmodules = true; }; # Use gitaly and their build system as source root Loading @@ -32,10 +31,15 @@ stdenv.mkDerivation rec { git config --global --add safe.directory '*' ''; sourceRoot = src.name; # This is a patch for gitaly, not git patches = [ ./dont-clone-git-repo.patch ]; sourceRoot = finalAttrs.src.name; buildFlags = [ "install-git" ]; GIT_REPO_URL = src; GIT_REPO_PATH = finalAttrs.src; HOME = "/build"; nativeBuildInputs = [ Loading Loading @@ -76,4 +80,4 @@ stdenv.mkDerivation rec { platforms = lib.platforms.all; teams = [ lib.teams.gitlab ]; }; } }) pkgs/by-name/gi/gitlab/update.py +1 −1 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ def update_gitaly(): NIXPKGS_PATH, "-H", "-a", "leaveDotGit", "fetchSubmodules", "true", "https://gitlab.com/gitlab-org/git", git_rev Loading Loading
pkgs/by-name/gi/gitaly/dont-clone-git-repo.patch 0 → 100644 +19 −0 Original line number Diff line number Diff line diff --git a/Makefile b/Makefile index e75c22e80b..f702da6f80 100644 --- a/Makefile +++ b/Makefile @@ -757,12 +757,8 @@ # otherwise try to rebuild all targets depending on it whenever we build # something else. We thus depend on the Makefile instead. ${DEPENDENCY_DIR}/git-%/Makefile: ${DEPENDENCY_DIR}/git-%.version - ${Q}${GIT} -c init.defaultBranch=master init ${GIT_QUIET} "${@D}" - ${Q}${GIT} -C "${@D}" config remote.origin.url ${GIT_REPO_URL} - ${Q}${GIT} -C "${@D}" config remote.origin.tagOpt --no-tags - ${Q}${GIT} -C "${@D}" fetch --depth 1 ${GIT_QUIET} origin ${GIT_VERSION} - ${Q}${GIT} -C "${@D}" reset --hard - ${Q}${GIT} -C "${@D}" checkout ${GIT_QUIET} --detach FETCH_HEAD + cp -r ${GIT_REPO_PATH} "${@D}" + chmod -R oga+rw "${@D}" ifeq ($(OVERRIDE_GIT_VERSION),) ${Q}rm -f "${@D}"/version else
pkgs/by-name/gi/gitaly/git-data.json +1 −1 Original line number Diff line number Diff line { "version": "2.52-a37bb2ae", "rev": "a37bb2ae6c6659cf7cefd0412759fca5202a823d", "hash": "sha256-7yUjXiaFwPG9o4n+IieYNTJKtzyawQFHooNrikpbiEM=" "hash": "sha256-A1FOzmVe2e73pie0WYJPwsKOb5BGNrusGy0wXa9ruvI=" }
pkgs/by-name/gi/gitaly/git.nix +10 −6 Original line number Diff line number Diff line Loading @@ -13,16 +13,15 @@ let data = lib.importJSON ./git-data.json; in stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: { inherit (data) version; pname = "gitaly-git"; # `src` attribute for nix-update src = fetchFromGitLab { owner = "gitlab-org"; repo = "git"; inherit (data) rev hash; leaveDotGit = true; fetchSubmodules = true; }; # Use gitaly and their build system as source root Loading @@ -32,10 +31,15 @@ stdenv.mkDerivation rec { git config --global --add safe.directory '*' ''; sourceRoot = src.name; # This is a patch for gitaly, not git patches = [ ./dont-clone-git-repo.patch ]; sourceRoot = finalAttrs.src.name; buildFlags = [ "install-git" ]; GIT_REPO_URL = src; GIT_REPO_PATH = finalAttrs.src; HOME = "/build"; nativeBuildInputs = [ Loading Loading @@ -76,4 +80,4 @@ stdenv.mkDerivation rec { platforms = lib.platforms.all; teams = [ lib.teams.gitlab ]; }; } })
pkgs/by-name/gi/gitlab/update.py +1 −1 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ def update_gitaly(): NIXPKGS_PATH, "-H", "-a", "leaveDotGit", "fetchSubmodules", "true", "https://gitlab.com/gitlab-org/git", git_rev Loading