mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
bacabfe504
Add codefresh cli[1] tool to interact with codefresh[2] service. [1] https://github.com/codefresh-io/cli [2] https://codefresh.io/
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ lib, mkYarnPackage, fetchFromGitHub, fetchYarnDeps, testers, codefresh }:
|
|
|
|
mkYarnPackage rec {
|
|
pname = "codefresh";
|
|
version = "0.87.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "codefresh-io";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-SUwt0oWls823EeLxT4CW+LDdsjAtSxxxKkllhMJXCtM=";
|
|
};
|
|
|
|
offlineCache = fetchYarnDeps {
|
|
yarnLock = "${src}/yarn.lock";
|
|
hash = "sha256-tzsHbvoQ59MwE4TYdPweLaAv9r4V8oyTQyvdeyPCsHY=";
|
|
};
|
|
packageJSON = ./package.json;
|
|
|
|
doDist = false;
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = codefresh;
|
|
# codefresh needs to read a config file, this is faked out with a subshell
|
|
command = "codefresh --cfconfig <(echo 'contexts:') version";
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/codefresh-io/cli/releases/tag/v${version}";
|
|
description = "Codefresh CLI tool to interact with Codefresh services.";
|
|
homepage = "https://github.com/codefresh-io/cli";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "codefresh";
|
|
maintainers = [ lib.maintainers.takac ];
|
|
};
|
|
}
|