Commit 5d8650e3 authored by Robert Scott's avatar Robert Scott
Browse files

gocd-server: add nixos test to passthru.tests

parent 4f54ef20
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, unzip }:
{ lib
, stdenv
, fetchurl
, unzip
, nixosTests
}:

stdenv.mkDerivation rec {
  pname = "gocd-server";
@@ -20,6 +25,10 @@ stdenv.mkDerivation rec {

  nativeBuildInputs = [ unzip ];

  passthru.tests = {
    inherit (nixosTests) gocd-server;
  };

  buildCommand = "
    unzip $src -d $out
    mv $out/go-server-${version} $out/go-server