nixpkgs/pkgs/by-name/gi/gitlab-ci-local/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.2 KiB
Nix
Raw Normal View History

2024-03-06 12:43:06 +03:00
{ buildNpmPackage
, fetchFromGitHub
, lib
, nix-update-script
2024-07-08 07:19:07 +03:00
, gitlab-ci-local
, testers
2024-03-06 12:43:06 +03:00
}:
buildNpmPackage rec {
pname = "gitlab-ci-local";
2024-08-31 21:28:28 +03:00
version = "4.53.0";
2024-03-06 12:43:06 +03:00
src = fetchFromGitHub {
owner = "firecow";
repo = "gitlab-ci-local";
rev = version;
2024-08-31 21:28:28 +03:00
hash = "sha256-VLBVfA4x4gaj7e37W7EqehJpYhmEgTatIL2IrO4i+Z8=";
2024-03-06 12:43:06 +03:00
};
2024-08-31 21:28:28 +03:00
npmDepsHash = "sha256-HAat2D45XeIjDW207Fn5M7O1sqjHOV2gxm2Urzxw+PU=";
2024-03-06 12:43:06 +03:00
postPatch = ''
# remove cleanup which runs git commands
substituteInPlace package.json \
--replace-fail "npm run cleanup" "true"
'';
2024-07-08 07:19:07 +03:00
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = gitlab-ci-local;
};
};
2024-03-06 12:43:06 +03:00
meta = with lib;{
description = "Run gitlab pipelines locally as shell executor or docker executor";
mainProgram = "gitlab-ci-local";
2024-03-06 12:43:06 +03:00
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;
};
}