2024-04-21 15:54:59 +00:00
|
|
|
{ buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "gitlab-ci-local";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "4.49.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "firecow";
|
|
|
|
repo = "gitlab-ci-local";
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-hhzkC9wnPNwQwky2FegTMRIbcyCMzrZ/hoQlfZwk3sk=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
npmDepsHash = "sha256-mnnP1YvKSm/CgZYQWF8VU+cuQ0SUV5tW1dCRrGRBrmg=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
mainProgram = "gitlab-ci-local";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|