nixpkgs/pkgs/by-name/gi/gitlab-ci-local/package.nix
2024-04-27 19:21:04 +00:00

41 lines
1.1 KiB
Nix

{ buildNpmPackage
, fetchFromGitHub
, lib
, nix-update-script
}:
buildNpmPackage rec {
pname = "gitlab-ci-local";
version = "4.48.2";
src = fetchFromGitHub {
owner = "firecow";
repo = "gitlab-ci-local";
rev = version;
hash = "sha256-QdbVI6aby/UQCR3G25nvmvoXNMDndgLYz/hOTmj5dnc=";
};
npmDepsHash = "sha256-ebrdMbSAsughHCuV86s6WA12a8hqA2yyC/rJUyViOrI=";
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;
};
}