9679d27307
* metabase: 0.41.5 -> 0.42.0 (#159518) * metabase: 0.42.0 -> 0.42.1 and use SPDX3 license identifier Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
33 lines
890 B
Nix
33 lines
890 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, jdk11, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "metabase";
|
|
version = "0.42.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.metabase.com/v${version}/metabase.jar";
|
|
hash = "sha256-PmcVVAS/5mDhmOSoFvkZeYkbvFD/KOcgVYuScwD4Olg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
makeWrapper ${jdk11}/bin/java $out/bin/metabase --add-flags "-jar $src"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The easy, open source way for everyone in your company to ask questions and learn from data";
|
|
homepage = "https://metabase.com";
|
|
license = licenses.agpl3Only;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ schneefux thoughtpolice mmahut ];
|
|
};
|
|
passthru.tests = {
|
|
inherit (nixosTests) metabase;
|
|
};
|
|
}
|