nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, unzip }:
2
3stdenv.mkDerivation rec {
4 pname = "gocd-server";
5 version = "19.3.0";
6 rev = "8959";
7
8 src = fetchurl {
9 url = "https://download.go.cd/binaries/${version}-${rev}/generic/go-server-${version}-${rev}.zip";
10 sha256 = "0c30qzd6awlw0zx91rk6na0mmgykqkgrw9ychx18ivjwma0hr0sc";
11 };
12
13 meta = with lib; {
14 description = "A continuous delivery server specializing in advanced workflow modeling and visualization";
15 homepage = "http://www.go.cd";
16 license = licenses.asl20;
17 platforms = platforms.all;
18 maintainers = with maintainers; [ grahamc swarren83 ];
19 };
20
21 nativeBuildInputs = [ unzip ];
22
23 buildCommand = "
24 unzip $src -d $out
25 mv $out/go-server-${version} $out/go-server
26 mkdir -p $out/go-server/conf
27 ";
28}