btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / go / gocd-agent / package.nix
blobadb2839de1d8e282dddeda01a5c25aa8bacdd422
1 { lib, stdenv, fetchurl, unzip, nixosTests }:
3 stdenv.mkDerivation rec {
4   pname = "gocd-agent";
5   version = "23.1.0";
6   rev = "16079";
8   src = fetchurl {
9     url = "https://download.go.cd/binaries/${version}-${rev}/generic/go-agent-${version}-${rev}.zip";
10     sha256 = "sha256-L2MOkbVHoQu99lKrbnsNkhuU0SZ8VANSK72GZrGLbiQ=";
11   };
13   passthru.tests = { inherit (nixosTests) gocd-agent; };
15   meta = with lib; {
16     description = "Continuous delivery server specializing in advanced workflow modeling and visualization";
17     homepage = "http://www.go.cd";
18     license = licenses.asl20;
19     platforms = platforms.all;
20     sourceProvenance = with sourceTypes; [
21       binaryBytecode
22       binaryNativeCode
23     ];
24     maintainers = with maintainers; [ grahamc swarren83 ];
25   };
27   nativeBuildInputs = [ unzip ];
29   buildCommand = "
30     unzip $src -d $out
31     mv $out/go-agent-${version} $out/go-agent
32   ";