depot/third_party/nixpkgs/pkgs/servers/metabase/default.nix
Default email bb5b50588c Project import generated by Copybara.
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
2021-02-19 20:06:45 +01:00

27 lines
769 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, jdk11 }:
stdenv.mkDerivation rec {
pname = "metabase";
version = "0.38.0";
src = fetchurl {
url = "https://downloads.metabase.com/v${version}/metabase.jar";
sha256 = "170fj2cc7drh6c1dgl60f9n79vfrsw2v57lmds677naxnq254jhp";
};
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
installPhase = ''
makeWrapper ${jdk11}/bin/java $out/bin/metabase --add-flags "-jar $src"
'';
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.agpl3;
platforms = platforms.all;
maintainers = with maintainers; [ schneefux thoughtpolice mmahut ];
};
}