mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
graylog: expose NixOS test via passthru
With this change, our ofborg CI will run the integration test as well if a PR changes the `graylog` package.
This commit is contained in:
parent
33b7529b01
commit
6baf442a9e
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, makeWrapper, jre_headless }:
|
||||
{ stdenv, fetchurl, makeWrapper, jre_headless, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "graylog";
|
||||
@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ makeWrapper ];
|
||||
makeWrapperArgs = [ "--prefix" "PATH" ":" "${jre_headless}/bin" ];
|
||||
|
||||
passthru.tests = { inherit (nixosTests) graylog; };
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r {graylog.jar,lib,bin,plugin} $out
|
||||
|
Loading…
Reference in New Issue
Block a user