about summary refs log tree commit diff
path: root/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/continuous-integration/gitlab-runner/default.nix')
-rw-r--r--pkgs/development/tools/continuous-integration/gitlab-runner/default.nix75
1 files changed, 0 insertions, 75 deletions
diff --git a/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix b/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
deleted file mode 100644
index 6f6a8fd68259c..0000000000000
--- a/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
+++ /dev/null
@@ -1,75 +0,0 @@
-{ lib, buildGoModule, fetchFromGitLab, bash }:
-
-let
-  version = "17.1.0";
-in
-buildGoModule rec {
-  inherit version;
-  pname = "gitlab-runner";
-
-  commonPackagePath = "gitlab.com/gitlab-org/gitlab-runner/common";
-  ldflags = [
-    "-X ${commonPackagePath}.NAME=gitlab-runner"
-    "-X ${commonPackagePath}.VERSION=${version}"
-    "-X ${commonPackagePath}.REVISION=v${version}"
-  ];
-
-  # For patchShebangs
-  buildInputs = [ bash ];
-
-  vendorHash = "sha256-Rk5/h8wqVwGzovtAjjNkvexG71Dj36mFxU8OsLJzpUo=";
-
-  src = fetchFromGitLab {
-    owner = "gitlab-org";
-    repo = "gitlab-runner";
-    rev = "v${version}";
-    sha256 = "sha256-mRL62PIAkPK0aLA7uYpGlUvaJfbD354RDOD4P8MLzx8=";
-  };
-
-  patches = [
-    ./fix-shell-path.patch
-    ./remove-bash-test.patch
-  ];
-
-  prePatch = ''
-    # Remove some tests that can't work during a nix build
-
-    # Requires to run in a git repo
-    sed -i "s/func TestCacheArchiverAddingUntrackedFiles/func OFF_TestCacheArchiverAddingUntrackedFiles/" commands/helpers/file_archiver_test.go
-    sed -i "s/func TestCacheArchiverAddingUntrackedUnicodeFiles/func OFF_TestCacheArchiverAddingUntrackedUnicodeFiles/" commands/helpers/file_archiver_test.go
-
-    # No writable developer environment
-    rm common/build_test.go
-    rm common/build_settings_test.go
-    rm executors/custom/custom_test.go
-
-    # No docker during build
-    rm executors/docker/terminal_test.go
-    rm executors/docker/docker_test.go
-    rm helpers/docker/auth/auth_test.go
-    rm executors/docker/services_test.go
-  '';
-
-  excludedPackages = [
-    # CI helper script for pushing images to Docker and ECR registries
-    # https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/4139
-    "./scripts/sync-docker-images"
-  ];
-
-  postInstall = ''
-    install packaging/root/usr/share/gitlab-runner/clear-docker-cache $out/bin
-  '';
-
-  preCheck = ''
-    # Make the tests pass outside of GitLab CI
-    export CI=0
-  '';
-
-  meta = with lib; {
-    description = "GitLab Runner the continuous integration executor of GitLab";
-    license = licenses.mit;
-    homepage = "https://docs.gitlab.com/runner/";
-    platforms = platforms.unix ++ platforms.darwin;
-    maintainers = with maintainers; [ bachp zimbatm ] ++ teams.gitlab.members;
-  };
-}