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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.44.1";
|
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";
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-TIQrmzdLD/pwMbd1dyLh3d2bauu7Wv6C2CtuuXMNN5E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-02-20 05:27:41 +00:00
|
|
|
runHook preInstall
|
2021-02-05 17:12:51 +00:00
|
|
|
makeWrapper ${jdk11}/bin/java $out/bin/metabase --add-flags "-jar $src"
|
2022-02-20 05:27:41 +00:00
|
|
|
runHook postInstall
|
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";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.agpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
}
|