depot/third_party/nixpkgs/pkgs/development/tools/continuous-integration/gocd-agent/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

26 lines
741 B
Nix

{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "gocd-agent";
version = "19.3.0";
rev = "8959";
src = fetchurl {
url = "https://download.go.cd/binaries/${version}-${rev}/generic/go-agent-${version}-${rev}.zip";
sha256 = "1nirdv82i8x4s1dyb0rmxldh8avappd4g3mbbl6xp7r7s0drcprp";
};
meta = with lib; {
description = "A continuous delivery server specializing in advanced workflow modeling and visualization";
homepage = "http://www.go.cd";
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ grahamc swarren83 ];
};
nativeBuildInputs = [ unzip ];
buildCommand = "
unzip $src -d $out
mv $out/go-agent-${version} $out/go-agent
";
}