nixpkgs/pkgs/servers/metabase/default.nix
Raito Bezarius 4fc66686f3 metabase: 0.46.6 -> 0.46.6.1
This fixes a security vulnerability reported:

in http://web.archive.org/web/20230721121824/https://www.metabase.com/blog/security-advisory

(web archive URL given that the vendor URL has no marker.)

A CVE number exist but has not been released.
2023-07-21 16:19:52 +02:00

34 lines
953 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, jdk11, nixosTests }:
stdenv.mkDerivation rec {
pname = "metabase";
version = "0.46.6.1";
src = fetchurl {
url = "https://downloads.metabase.com/v${version}/metabase.jar";
hash = "sha256-EtJnv1FaI4lEu2X87tHvg/WuY0UcEa1bf3rb6vYS5cY=";
};
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;
};
}