evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / co / codefresh / package.nix
blobfc6829cba2c39c7b3e9158f74ddd2a49d1c8bece
1 { lib, stdenv, fetchFromGitHub, fetchYarnDeps, yarnConfigHook, yarnInstallHook, nodejs, testers }:
3 stdenv.mkDerivation (finalAttrs: {
4   pname = "codefresh";
5   version = "0.87.3";
7   src = fetchFromGitHub {
8     owner = "codefresh-io";
9     repo = "cli";
10     rev = "v${finalAttrs.version}";
11     hash = "sha256-SUwt0oWls823EeLxT4CW+LDdsjAtSxxxKkllhMJXCtM=";
12   };
14   offlineCache = fetchYarnDeps {
15     yarnLock = "${finalAttrs.src}/yarn.lock";
16     hash = "sha256-tzsHbvoQ59MwE4TYdPweLaAv9r4V8oyTQyvdeyPCsHY=";
17   };
18   nativeBuildInputs = [
19     yarnConfigHook
20     yarnInstallHook
21     nodejs
22   ];
24   passthru.tests.version = testers.testVersion {
25     package = finalAttrs.finalPackage;
26     # codefresh needs to read a config file, this is faked out with a subshell
27     command = "codefresh --cfconfig <(echo 'contexts:') version";
28   };
30   meta = {
31     changelog = "https://github.com/codefresh-io/cli/releases/tag/v${finalAttrs.version}";
32     description = "Codefresh CLI tool to interact with Codefresh services";
33     homepage = "https://github.com/codefresh-io/cli";
34     license = lib.licenses.mit;
35     mainProgram = "codefresh";
36     maintainers = [ lib.maintainers.takac ];
37   };