blob: 027036915a5b2ee054d091550c7bbd34a46869f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ buildNpmPackage
, fetchFromGitHub
, lib
, nix-update-script
}:
buildNpmPackage rec {
pname = "gitlab-ci-local";
version = "4.51.0";
src = fetchFromGitHub {
owner = "firecow";
repo = "gitlab-ci-local";
rev = version;
hash = "sha256-D1zviTj7isAuEyzRYEyjq4sx+jo/U3ZQZLFr35/1ZNo=";
};
npmDepsHash = "sha256-ocrSOPLbWkU0LBpWAdl54hWr+7gE3z2sy8lJilGsExo=";
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;
};
}
|