2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "gocd-server";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "23.1.0";
|
|
|
|
rev = "16079";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.go.cd/binaries/${version}-${rev}/generic/go-server-${version}-${rev}.zip";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-//d6izGm1odE25H/PI5pn51FfUL4/6GbLwKUKAqZ3Kw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Continuous delivery server specializing in advanced workflow modeling and visualization";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.go.cd";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
2022-10-30 15:09:59 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
binaryBytecode
|
|
|
|
binaryNativeCode
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ grahamc swarren83 ];
|
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) gocd-server;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildCommand = "
|
|
|
|
unzip $src -d $out
|
|
|
|
mv $out/go-server-${version} $out/go-server
|
|
|
|
mkdir -p $out/go-server/conf
|
|
|
|
";
|
|
|
|
}
|