about summary refs log tree commit diff
path: root/pkgs/by-name/gi/gitlab-ci-local/package.nix
diff options
context:
space:
mode:
authorShogo Takata <peshogo@gmail.com>2024-03-06 18:43:06 +0900
committerShogo Takata <peshogo@gmail.com>2024-03-06 22:07:43 +0900
commit138daca430ba32025559d22ca7c82c1db8782dc0 (patch)
treea9b015510ed104192e7f3836e6894ca4f45e8f32 /pkgs/by-name/gi/gitlab-ci-local/package.nix
parent0e537bae61f9f3139a96a1b68be0827c18c761a8 (diff)
gitlab-ci-local: init at 4.46.1
Diffstat (limited to 'pkgs/by-name/gi/gitlab-ci-local/package.nix')
-rw-r--r--pkgs/by-name/gi/gitlab-ci-local/package.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/gi/gitlab-ci-local/package.nix b/pkgs/by-name/gi/gitlab-ci-local/package.nix
new file mode 100644
index 0000000000000..fdb21f92fac75
--- /dev/null
+++ b/pkgs/by-name/gi/gitlab-ci-local/package.nix
@@ -0,0 +1,40 @@
+{ buildNpmPackage
+, fetchFromGitHub
+, lib
+, nix-update-script
+}:
+
+buildNpmPackage rec {
+  pname = "gitlab-ci-local";
+  version = "4.46.1";
+
+  src = fetchFromGitHub {
+    owner = "firecow";
+    repo = "gitlab-ci-local";
+    rev = version;
+    hash = "sha256-0NUmsbuzs004w9ETj4e4nO+sDvYHQh9SwJoRc3+r+j8=";
+  };
+
+  npmDepsHash = "sha256-zCBNUKmLluVCDoPHuKy9KMKCGL8FqopFhKq7QCAUe4U=";
+
+  postPatch = ''
+    # remove cleanup which runs git commands
+    substituteInPlace package.json \
+      --replace-fail "npm run cleanup" "true"
+  '';
+
+  passthru.updateScript = nix-update-script { };
+
+  meta = with lib;{
+    description = "Run gitlab pipelines locally as shell executor or docker executor";
+    longDescription = ''
+      Tired of pushing to test your .gitlab-ci.yml?
+      Run gitlab pipelines locally as shell executor or docker executor.
+      Get rid of all those dev specific shell scripts and make files.
+    '';
+    homepage = "https://github.com/firecow/gitlab-ci-local";
+    license = licenses.mit;
+    maintainers = with maintainers; [ pineapplehunter ];
+    platforms = platforms.all;
+  };
+}