push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
{
fetchFromGitHub,
jre,
lib,
makeWrapper,
maven,
nix-update-script,
}:
maven.buildMavenPackage rec {
pname = "h2";
version = "2.4.240";
outputs = [
"out"
"doc"
];
src = fetchFromGitHub {
owner = "h2database";
repo = "h2database";
tag = "version-${version}";
hash = "sha256-Cy6MoumJBhhcYT6dCHWeOfmhjGRkdNvSONdIiZaf6uU=";
};
mvnParameters = "-f h2/pom.xml";
mvnHash = "sha256-ue1X0fswi3C9uqJ/cVCf/qd2XStMve1k1qA+IsREOGk=";
nativeBuildInputs = [ makeWrapper ];
doCheck = false;
installPhase = ''
mkdir -p $out/share/java
install -Dm644 h2/target/h2-${version}.jar $out/share/java
makeWrapper ${jre}/bin/java $out/bin/h2 \
--add-flags "-cp \"$out/share/java/h2-${version}.jar:\$H2DRIVERS:\$CLASSPATH\" org.h2.tools.Console"
mkdir -p $doc/share/doc/h2
cp -r h2/src/docsrc/* $doc/share/doc/h2
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"^version-([0-9.]+)$"
];
};
meta = {
description = "Java SQL database";
homepage = "https://h2database.com/html/main.html";
changelog = "https://h2database.com/html/changelog.html";
license = lib.licenses.mpl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [
mahe
anthonyroussel
];
mainProgram = "h2";
};
}

View File

@@ -0,0 +1,92 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
cmake,
makeWrapper,
ninja,
perl,
brotli,
openssl,
libcap,
libuv,
wslay,
zlib,
withMruby ? true,
bison,
ruby,
withUring ? stdenv.hostPlatform.isLinux,
liburing,
nixosTests,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "h2o";
version = "2.3.0-rolling-2025-09-24";
src = fetchFromGitHub {
owner = "h2o";
repo = "h2o";
rev = "74012bb501f14e61e5ecc1e9860bd66ba6789e0d";
hash = "sha256-zEibiI3BdhaTty5vZ3PPXTbHIRLsE2iUiwI6hRZfy8A=";
};
outputs = [
"out"
"man"
"dev"
"lib"
];
nativeBuildInputs = [
pkg-config
cmake
makeWrapper
ninja
]
++ lib.optionals withMruby [
bison
ruby
]
++ lib.optional withUring liburing;
buildInputs = [
brotli
openssl
libcap
libuv
perl
zlib
wslay
];
cmakeFlags = [
"-DWITH_MRUBY=${if withMruby then "ON" else "OFF"}"
];
postInstall = ''
EXES="$(find "$out/share/h2o" -type f -executable)"
for exe in $EXES; do
wrapProgram "$exe" \
--set "H2O_PERL" "${lib.getExe perl}" \
--prefix "PATH" : "${lib.getBin openssl}/bin"
done
'';
passthru = {
tests = { inherit (nixosTests) h2o; };
};
meta = with lib; {
description = "Optimized HTTP/1.x, HTTP/2, HTTP/3 server";
homepage = "https://h2o.examp1e.net";
license = licenses.mit;
maintainers = with maintainers; [
toastal
thoughtpolice
];
mainProgram = "h2o";
platforms = platforms.linux;
};
})