vifm: 0.13 -> 0.14 (#380559)
[NixPkgs.git] / pkgs / by-name / go / gocd-agent / package.nix
blobc54dca292c627e1fa8d0e56b84b88057f1d6f985
2   lib,
3   stdenv,
4   fetchurl,
5   unzip,
6   nixosTests,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "gocd-agent";
11   version = "23.1.0";
12   rev = "16079";
14   src = fetchurl {
15     url = "https://download.go.cd/binaries/${version}-${rev}/generic/go-agent-${version}-${rev}.zip";
16     sha256 = "sha256-L2MOkbVHoQu99lKrbnsNkhuU0SZ8VANSK72GZrGLbiQ=";
17   };
19   passthru.tests = { inherit (nixosTests) gocd-agent; };
21   meta = with lib; {
22     description = "Continuous delivery server specializing in advanced workflow modeling and visualization";
23     homepage = "http://www.go.cd";
24     license = licenses.asl20;
25     platforms = platforms.all;
26     sourceProvenance = with sourceTypes; [
27       binaryBytecode
28       binaryNativeCode
29     ];
30     maintainers = with maintainers; [
31       grahamc
32       swarren83
33     ];
34   };
36   nativeBuildInputs = [ unzip ];
38   buildCommand = "
39     unzip $src -d $out
40     mv $out/go-agent-${version} $out/go-agent
41   ";