Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.5 KiB
Nix
67 lines
1.5 KiB
Nix
{
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nix-update-script,
|
|
gitlab-ci-local,
|
|
testers,
|
|
makeBinaryWrapper,
|
|
rsync,
|
|
gitMinimal,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "gitlab-ci-local";
|
|
version = "4.62.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firecow";
|
|
repo = "gitlab-ci-local";
|
|
rev = version;
|
|
hash = "sha256-JcCfrrb/xAvILfHgnKoRxjWG4fvi4kVg0W+s+y25A6Y=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-J/my72RPPwg1r1t4vO3CgMnGDP7H/Cc3apToypaK1YI=";
|
|
|
|
nativeBuildInputs = [
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
postPatch = ''
|
|
# remove cleanup which runs git commands
|
|
substituteInPlace package.json \
|
|
--replace-fail "npm run cleanup" "true"
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/gitlab-ci-local \
|
|
--prefix PATH : "${
|
|
lib.makeBinPath [
|
|
rsync
|
|
gitMinimal
|
|
]
|
|
}"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests.version = testers.testVersion {
|
|
package = gitlab-ci-local;
|
|
};
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|