h2: 1.4.199 -> 2.1.210 (#155436)

This commit is contained in:
Harrison Houghton 2022-02-02 06:43:55 -05:00 committed by GitHub
parent 196921c619
commit 7c47df46c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,15 @@
{ lib, stdenv, fetchzip, jre, makeWrapper }: { lib, stdenv, fetchzip, jre, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "h2"; pname = "h2";
version = "2.1.210";
version = "1.4.199";
src = fetchzip { src = fetchzip {
url = "https://h2database.com/h2-2019-03-13.zip"; url = "https://github.com/h2database/h2database/releases/download/version-${version}/h2-2022-01-17.zip";
sha256 = "0pdvbnx7nqfqs7x1zkwz2q34331l55jknpk6arf6dksvnd71hinj"; sha256 = "0zcjblhjj98dsj954ia3by9vx5w7mix1dzi85jnvp18kxmbldmf4";
}; };
outputs = [ "out" "doc" ];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = installPhase =
@ -24,8 +25,9 @@ stdenv.mkDerivation rec {
fi fi
''; '';
in '' in ''
mkdir -p $out mkdir -p $out $doc/share/doc/
cp -R * $out cp -R bin $out/
cp -R docs $doc/share/doc/h2
echo '${h2ToolScript}' > $out/bin/h2tool.sh echo '${h2ToolScript}' > $out/bin/h2tool.sh