mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #293719 from pineapplehunter/gitlab-ci-local
gitlab-ci-local: init at 4.46.1
This commit is contained in:
commit
710c33a5c6
40
pkgs/by-name/gi/gitlab-ci-local/package.nix
Normal file
40
pkgs/by-name/gi/gitlab-ci-local/package.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user