3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/metabase/default.nix
2022-09-22 23:14:58 +00:00

34 lines
951 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, jdk11, nixosTests }:
stdenv.mkDerivation rec {
pname = "metabase";
version = "0.44.3";
src = fetchurl {
url = "https://downloads.metabase.com/v${version}/metabase.jar";
hash = "sha256-74/G0SJRvyBiIIsCgh9LlINF6MS5UrCKmnfTKPLIpr0=";
};
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";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.agpl3Only;
platforms = platforms.all;
maintainers = with maintainers; [ schneefux thoughtpolice mmahut ];
};
passthru.tests = {
inherit (nixosTests) metabase;
};
}