mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
34 lines
978 B
Nix
34 lines
978 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, jdk11, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "metabase";
|
|
version = "0.50.18";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.metabase.com/v${version}/metabase.jar";
|
|
hash = "sha256-295wRJsKgR/L8rhSWTT73GM9/uRSP0DdxzFqj00bEpw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
makeWrapper ${jdk11}/bin/java $out/bin/metabase --add-flags "-jar $src"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
mainProgram = "metabase";
|
|
};
|
|
passthru.tests = {
|
|
inherit (nixosTests) metabase;
|
|
};
|
|
}
|