nixpkgs/pkgs/servers/metabase/default.nix
Thomas Gerbet a77b1b7c5e metabase: 0.44.3 -> 0.44.5
Fixes CVE-2022-39358, CVE-2022-39359, CVE-2022-39360, CVE-2022-39361, CVE-2022-39362 and CVE-2022-43776.

https://github.com/metabase/metabase/releases/tag/v0.44.5
https://github.com/metabase/metabase/releases/tag/v0.44.4
2022-10-30 18:18:20 +01:00

34 lines
951 B
Nix

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