2021-12-19 01:06:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jdk11, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "metabase";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.41.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-05 17:05:55 +00:00
|
|
|
url = "https://downloads.metabase.com/v${version}/metabase.jar";
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "sha256-DH1xy1cTVDNNXyOIaayGHzOi4g0ZukNFFbZjufY+XLk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-05 17:12:51 +00:00
|
|
|
makeWrapper ${jdk11}/bin/java $out/bin/metabase --add-flags "-jar $src"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The easy, open source way for everyone in your company to ask questions and learn from data";
|
|
|
|
homepage = "https://metabase.com";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ schneefux thoughtpolice mmahut ];
|
|
|
|
};
|
2021-12-19 01:06:50 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) metabase;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|