Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2024-11-07 00:14:40 +00:00 committed by GitHub
commit 91a300acbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
50 changed files with 3862 additions and 489 deletions

View File

@ -162,9 +162,10 @@ rustPlatform.buildRustPackage {
} }
``` ```
Note that setting `cargoLock.lockFile` or `cargoLock.lockFileContents` If the upstream source repository lacks a `Cargo.lock` file, you must add one
doesn't add a `Cargo.lock` to your `src`, and a `Cargo.lock` is still to `src`, as it is essential for building a Rust package. Setting
required to build a rust package. A simple fix is to use: `cargoLock.lockFile` or `cargoLock.lockFileContents` will not automatically add
a `Cargo.lock` file to `src`. A straightforward solution is to use:
```nix ```nix
{ {

View File

@ -870,6 +870,12 @@
githubId = 56970006; githubId = 56970006;
keys = [ { fingerprint = "50E2 669C AB38 2F4A 5F72 1667 0D6B FC01 D45E DADD"; } ]; keys = [ { fingerprint = "50E2 669C AB38 2F4A 5F72 1667 0D6B FC01 D45E DADD"; } ];
}; };
akotro = {
name = "Antonis Kotronakis";
email = "mail@akotro.dev";
github = "akotro";
githubId = 20772540;
};
akru = { akru = {
email = "mail@akru.me"; email = "mail@akru.me";
github = "akru"; github = "akru";
@ -2351,7 +2357,7 @@
email = "baduhai@pm.me"; email = "baduhai@pm.me";
github = "baduhai"; github = "baduhai";
githubId = 31864305; githubId = 31864305;
name = "William"; name = "William Hai";
}; };
baitinq = { baitinq = {
email = "manuelpalenzuelamerino@gmail.com"; email = "manuelpalenzuelamerino@gmail.com";

View File

@ -80,6 +80,8 @@ in {
''; '';
}; };
package = lib.options.mkPackageOption pkgs "snapcast" { };
listenAddress = lib.mkOption { listenAddress = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "::"; default = "::";
@ -286,7 +288,7 @@ in {
serviceConfig = { serviceConfig = {
DynamicUser = true; DynamicUser = true;
ExecStart = "${pkgs.snapcast}/bin/snapserver --daemon ${optionString}"; ExecStart = "${cfg.package}/bin/snapserver --daemon ${optionString}";
Type = "forking"; Type = "forking";
LimitRTPRIO = 50; LimitRTPRIO = 50;
LimitRTTIME = "infinity"; LimitRTTIME = "infinity";

View File

@ -406,8 +406,8 @@ let
mktplcRef = { mktplcRef = {
name = "vscode-neovim"; name = "vscode-neovim";
publisher = "asvetliakov"; publisher = "asvetliakov";
version = "1.18.13"; version = "1.18.14";
hash = "sha256-FFgleWhzFaAE0UdKQ6lZsszBtJ46UZ3bfx1V3SopDNc="; hash = "sha256-Db49bLX0QLr7fS7ZUyeWOustN63LpaJ6IBTKMqAz8uc=";
}; };
meta = { meta = {
changelog = "https://marketplace.visualstudio.com/items/asvetliakov.vscode-neovim/changelog"; changelog = "https://marketplace.visualstudio.com/items/asvetliakov.vscode-neovim/changelog";

View File

@ -1,15 +1,15 @@
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, zip fetchFromGitHub,
, copyDesktopItems zip,
, libpng copyDesktopItems,
, SDL2 libpng,
, SDL2_image SDL2,
, darwin SDL2_image,
# Optionally bundle a ROM file # Optionally bundle a ROM file
, rom ? null rom ? null,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -43,8 +43,6 @@ stdenv.mkDerivation (finalAttrs: {
libpng libpng
SDL2 SDL2
SDL2_image SDL2_image
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
]; ];
makeFlags = [ makeFlags = [
@ -56,6 +54,10 @@ stdenv.mkDerivation (finalAttrs: {
"CC=${stdenv.cc.targetPrefix}cc" "CC=${stdenv.cc.targetPrefix}cc"
]; ];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-framework CoreFoundation";
};
desktopItems = [ "linux/tamatool.desktop" ]; desktopItems = [ "linux/tamatool.desktop" ];
installPhase = '' installPhase = ''

View File

@ -1,9 +1,6 @@
{ {
stdenv, stdenv,
lib, lib,
openexr,
jemalloc,
c-blosc,
binutils, binutils,
fetchFromGitHub, fetchFromGitHub,
cmake, cmake,
@ -55,17 +52,6 @@ let
"--enable-debug=no" "--enable-debug=no"
]; ];
}); });
openvdb' = openvdb.overrideAttrs (old: {
buildInputs = [
openexr
boost179
tbb_2021_11
jemalloc
c-blosc
ilmbase
];
});
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bambu-studio"; pname = "bambu-studio";
@ -111,7 +97,7 @@ stdenv.mkDerivation rec {
mpfr mpfr
nlopt nlopt
opencascade-occt_7_6 opencascade-occt_7_6
openvdb' openvdb
pcre pcre
tbb_2021_11 tbb_2021_11
webkitgtk_4_0 webkitgtk_4_0

View File

@ -26,6 +26,7 @@
, Cocoa , Cocoa
, Foundation , Foundation
, OpenGL , OpenGL
, unstableGitUpdater
}: }:
let let
@ -148,6 +149,8 @@ stdenv.mkDerivation (finalAttrs: {
nixosTest = nixosTests.ladybird; nixosTest = nixosTests.ladybird;
}; };
passthru.updateScript = unstableGitUpdater { };
meta = with lib; { meta = with lib; {
description = "Browser using the SerenityOS LibWeb engine with a Qt or Cocoa GUI"; description = "Browser using the SerenityOS LibWeb engine with a Qt or Cocoa GUI";
homepage = "https://ladybird.org"; homepage = "https://ladybird.org";

View File

@ -34,13 +34,13 @@ let
in in
buildGoModule rec { buildGoModule rec {
pname = "argo"; pname = "argo";
version = "3.5.11"; version = "3.5.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "argoproj"; owner = "argoproj";
repo = "argo"; repo = "argo";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-Yw61BCcMLl/zkmPm79SI0AdT6Nj2bxQkt6IKRBu0FmQ="; hash = "sha256-WJh6YP5WICgqJMPug3AIqxgrzH5Pp+rVtt5RfMjS9IU=";
}; };
vendorHash = "sha256-QwQasJMSEnHvBxyxCjLuinPt47XAhERch3j60KXGxa4="; vendorHash = "sha256-QwQasJMSEnHvBxyxCjLuinPt47XAhERch3j60KXGxa4=";

View File

@ -14,13 +14,13 @@
let let
package = buildGoModule rec { package = buildGoModule rec {
pname = "opentofu"; pname = "opentofu";
version = "1.8.4"; version = "1.8.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "opentofu"; owner = "opentofu";
repo = "opentofu"; repo = "opentofu";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-YUN+JBYn8Bq4glZNBdlr++WJgGpGSKK1PjWqaduF8bg="; hash = "sha256-sZGKM6Dxz0bZkHIITujojSsKtRD4E+q1uReWRg5EfC8=";
}; };
vendorHash = "sha256-cM2DSP2ss3vleUhPBIdyxKeWJxtHpdjL5b5HVS/iC6o="; vendorHash = "sha256-cM2DSP2ss3vleUhPBIdyxKeWJxtHpdjL5b5HVS/iC6o=";

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "popeye"; pname = "popeye";
version = "0.21.3"; version = "0.21.5";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = "v${version}"; rev = "v${version}";
owner = "derailed"; owner = "derailed";
repo = "popeye"; repo = "popeye";
sha256 = "sha256-2+AV2gt67zLa7bRIfsxQIeB82iJba8Y4P0fq9273r7Q="; sha256 = "sha256-2Ooh8yk6sD0VuHHxgkyIwqbJ9ynEUFDW3ti9ZzBOPX0=";
}; };
ldflags = [ ldflags = [
@ -17,7 +17,7 @@ buildGoModule rec {
"-X github.com/derailed/popeye/cmd.commit=${version}" "-X github.com/derailed/popeye/cmd.commit=${version}"
]; ];
vendorHash = "sha256-qrw/7fauMVb3Ai5E5MXL84yXHcReJZZ1oioB/Cv32Is="; vendorHash = "sha256-uTuDI9cQFE5Fdf5wcCAwjO1p/niSNHnXmWF6QhLkDUk=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View File

@ -38,7 +38,6 @@ let
meta = with lib; { meta = with lib; {
description = "Low-latency, high quality voice chat software"; description = "Low-latency, high quality voice chat software";
mainProgram = "mumble-server";
homepage = "https://mumble.info"; homepage = "https://mumble.info";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ felixsinger lilacious ]; maintainers = with maintainers; [ felixsinger lilacious ];
@ -117,6 +116,6 @@ let
]; ];
}; };
in { in {
mumble = client source; mumble = lib.recursiveUpdate (client source) {meta.mainProgram = "mumble";};
murmur = server source; murmur = lib.recursiveUpdate (server source) {meta.mainProgram = "mumble-server";};
} }

View File

@ -24,6 +24,7 @@ let
else if stdenv.hostPlatform.system == "x86_64-linux" then "linux64" else if stdenv.hostPlatform.system == "x86_64-linux" then "linux64"
else if stdenv.hostPlatform.system == "aarch64-linux" then "linux-arm64" else if stdenv.hostPlatform.system == "aarch64-linux" then "linux-arm64"
else if stdenv.hostPlatform.system == "x86_64-darwin" then "macos64" else if stdenv.hostPlatform.system == "x86_64-darwin" then "macos64"
else if stdenv.hostPlatform.system == "aarch64-darwin" then "macos-aarch64"
else throw "Unsupported system: ${stdenv.hostPlatform.system}"; else throw "Unsupported system: ${stdenv.hostPlatform.system}";
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
@ -57,7 +58,7 @@ stdenv.mkDerivation rec {
# and is not able to build the application itself # and is not able to build the application itself
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
ant -f build -Dsystem.version=${version} init compile jar ant -f build -Dsystem.version=${version} init compile jar ${lib.optionalString stdenv.hostPlatform.isDarwin "zip lib"}
runHook postBuild runHook postBuild
''; '';
@ -75,6 +76,13 @@ stdenv.mkDerivation rec {
install -Dm644 plugin.xml $out/share/java/ install -Dm644 plugin.xml $out/share/java/
install -Dm644 build/jameica-icon.png $out/share/pixmaps/jameica.png install -Dm644 build/jameica-icon.png $out/share/pixmaps/jameica.png
cp ${desktopItem}/share/applications/* $out/share/applications/ cp ${desktopItem}/share/applications/* $out/share/applications/
'' + lib.optionalString stdenv.hostPlatform.isDarwin ''
# Create .app bundle for macOS
mkdir -p $out/Applications
chmod +x releases/${_version}-${_build}-${_build}/tmp/jameica.app/jameica*.sh
cp -r releases/${_version}-${_build}-${_build}/tmp/jameica.app $out/Applications/Jameica.app
'' + ''
runHook postInstall runHook postInstall
''; '';
@ -101,7 +109,7 @@ stdenv.mkDerivation rec {
binaryBytecode # source bundles dependencies as jars binaryBytecode # source bundles dependencies as jars
]; ];
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]; platforms = platforms.unix;
maintainers = with maintainers; [ flokli r3dl3g ]; maintainers = with maintainers; [ flokli r3dl3g ];
mainProgram = "jameica"; mainProgram = "jameica";
}; };

View File

@ -1,6 +1,7 @@
{ {
lib, lib,
fetchFromGitHub, fetchFromGitHub,
nix-update-script,
cmake, cmake,
ninja, ninja,
@ -15,33 +16,48 @@
procps, procps,
qtbase, qtbase,
stdenv, stdenv,
tesseract,
websocketpp, websocketpp,
libXScrnSaver, libXScrnSaver,
libusb1,
pkg-config,
fetchpatch,
# #FIXME: Could not get cmake to pick up on these dependencies
# Prevents cmake from building the OCR video capabilities
# Everything else should work just missing this on plugin
# tesseract,
# leptonica,
}: }:
let let
httplib-src = fetchFromGitHub { httplib-src = fetchFromGitHub {
owner = "yhirose"; owner = "yhirose";
repo = "cpp-httplib"; repo = "cpp-httplib";
rev = "v0.17.3"; rev = "v0.13.3";
hash = "sha256-yvaPIbRqJGkiob3Nrv3H1ieFAC5b+h1tTncJWTy4dmk="; hash = "sha256-ESaH0+n7ycpOKM+Mnv/UgT16UEx86eFMQDHB3RVmgBw=";
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "advanced-scene-switcher"; pname = "advanced-scene-switcher";
version = "1.27.2"; version = "1.28.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "WarmUpTill"; owner = "WarmUpTill";
repo = "SceneSwitcher"; repo = "SceneSwitcher";
rev = version; rev = version;
hash = "sha256-7IciHCe2KemKNJpD9QcYK4AtxHlYuWaPsBCcVuPVvgA="; hash = "sha256-1U5quhfdhEBcCbEzW0uEpimYgvdbsIwaL2EdQ4cLF/M=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
ninja ninja
pkg-config
];
patches = [
# https://github.com/WarmUpTill/SceneSwitcher/pull/1244
(fetchpatch {
url = "https://github.com/WarmUpTill/SceneSwitcher/commit/e0c650574f9f7f6cae5626afa9abf8a838dc0858.diff";
hash = "sha256-eXO8LdGYf60sd/kyxWVDSEpwyzp4Uu9TpPADg5ED4yU=";
})
]; ];
buildInputs = [ buildInputs = [
@ -52,11 +68,13 @@ stdenv.mkDerivation rec {
nlohmann_json nlohmann_json
obs-studio obs-studio
opencv opencv
# tesseract
# leptonica
procps procps
qtbase qtbase
tesseract
websocketpp websocketpp
libXScrnSaver libXScrnSaver
libusb1
]; ];
dontWrapQtApps = true; dontWrapQtApps = true;
@ -68,13 +86,14 @@ stdenv.mkDerivation rec {
chmod -R +w $sourceRoot/deps/libremidi chmod -R +w $sourceRoot/deps/libremidi
''; '';
env.NIX_CFLAGS_COMPILE = "-Wno-error=stringop-overflow"; env.NIX_CFLAGS_COMPILE = "-Wno-error=stringop-overflow -Wno-error=deprecated-declarations";
passthru.updateScript = nix-update-script { };
meta = with lib; { meta = with lib; {
description = "Automated scene switcher for OBS Studio"; description = "Automated scene switcher for OBS Studio";
homepage = "https://github.com/WarmUpTill/SceneSwitcher"; homepage = "https://github.com/WarmUpTill/SceneSwitcher";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ ]; maintainers = with lib.maintainers; [ patrickdag ];
}; };
} }

File diff suppressed because it is too large Load Diff

View File

@ -5,23 +5,25 @@
, pkg-config , pkg-config
, openssl , openssl
, pcsclite , pcsclite
, PCSC
, Foundation
, IOKit
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "age-plugin-yubikey"; pname = "age-plugin-yubikey";
version = "0.5.0"; version = "0.5.0-unstable-2024-11-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "str4d"; owner = "str4d";
repo = pname; repo = pname;
rev = "v${version}"; rev = "36290c74ebd2723832aae684d43b927c9104f744";
hash = "sha256-9ghnPe83K+qixaFKCdM2FCPoENTNJnZA+OmmpD0E5LE="; hash = "sha256-vfemYGQnn3IzG7Y6iVKHZlYN+55/+A+N/GMG3TLs1h0=";
}; };
cargoHash = "sha256-8petNuCJ1qS6XKt+24Lg/bZh96yj9oO6fu/z65Xhi4k="; cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"age-core-0.10.0" = "sha256-Iw1KPYhUwfAvLGpYAGuSRhynrRJhD3EqOIS4UY6qC6c=";
};
};
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
@ -30,12 +32,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ buildInputs = [
openssl openssl
] ]
++ lib.optional stdenv.hostPlatform.isLinux pcsclite ++ lib.optionals stdenv.hostPlatform.isLinux [ pcsclite ];
++ lib.optionals stdenv.hostPlatform.isDarwin [
IOKit
Foundation
PCSC
];
meta = with lib; { meta = with lib; {
description = "YubiKey plugin for age"; description = "YubiKey plugin for age";
@ -43,6 +40,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/str4d/age-plugin-yubikey"; homepage = "https://github.com/str4d/age-plugin-yubikey";
changelog = "https://github.com/str4d/age-plugin-yubikey/blob/${src.rev}/CHANGELOG.md"; changelog = "https://github.com/str4d/age-plugin-yubikey/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ mit asl20 ]; license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ kranzes vtuan10 ]; maintainers = with maintainers; [ kranzes vtuan10 adamcstephens ];
}; };
} }

View File

@ -18,14 +18,14 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "alpaca"; pname = "alpaca";
version = "2.6.5"; version = "2.7.0";
pyproject = false; # Built with meson pyproject = false; # Built with meson
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Jeffser"; owner = "Jeffser";
repo = "Alpaca"; repo = "Alpaca";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-tXUM2XxYXUTXsycfq0hmkzc4quHKh7+0qit1YuKdCeQ="; hash = "sha256-gEQUVSNf8u92qIg0+5fsLIOPgIASdYdlTRDpzl61P+Q=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -51,6 +51,7 @@ python3Packages.buildPythonApplication rec {
pypdf pypdf
pytube pytube
html2text html2text
youtube-transcript-api
]; ];
dontWrapGApps = true; dontWrapGApps = true;

View File

@ -0,0 +1,88 @@
{
lib,
stdenvNoCC,
fetchurl,
nodejs,
makeBinaryWrapper,
runCommand,
angular-language-server,
writeShellApplication,
curl,
common-updater-scripts,
unzip,
}:
let
owner = "angular";
repo = "vscode-ng-language-service";
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "angular-language-server";
version = "18.2.0";
src = fetchurl {
name = "${finalAttrs.pname}-${finalAttrs.version}.zip";
url = "https://github.com/${owner}/${repo}/releases/download/v${finalAttrs.version}/ng-template.vsix";
hash = "sha256-rl04nqSSBMjZfPW8Y+UtFLFLDFd5FSxJs3S937mhDWE=";
};
nativeBuildInputs = [
unzip
makeBinaryWrapper
];
buildInputs = [ nodejs ];
installPhase = ''
runHook preInstall
install -Dm755 server/bin/ngserver $out/lib/bin/ngserver
install -Dm755 server/index.js $out/lib/index.js
cp -r node_modules $out/lib/node_modules
runHook postInstall
'';
postFixup = ''
patchShebangs $out/lib/bin/ngserver $out/lib/index.js $out/lib/node_modules
makeWrapper $out/lib/bin/ngserver $out/bin/ngserver \
--prefix PATH : ${lib.makeBinPath [ nodejs ]} \
--add-flags "--tsProbeLocations $out/lib/node_modules --ngProbeLocations $out/lib/node_modules"
'';
passthru = {
tests = {
start-ok = runCommand "${finalAttrs.pname}-test" { } ''
${lib.getExe angular-language-server} --stdio --help &> $out
cat $out | grep "Angular Language Service that implements the Language Server Protocol (LSP)"
'';
};
updateScript = lib.getExe (writeShellApplication {
name = "update-${finalAttrs.pname}";
runtimeInputs = [
curl
common-updater-scripts
];
text = ''
if [ -z "''${GITHUB_TOKEN:-}" ]; then
echo "no GITHUB_TOKEN provided - you could meet API request limiting" >&2
fi
LATEST_VERSION=$(curl -H "Accept: application/vnd.github+json" \
''${GITHUB_TOKEN:+-H "Authorization: bearer $GITHUB_TOKEN"} \
-Lsf https://api.github.com/repos/${owner}/${repo}/releases/latest | \
jq -r .tag_name | cut -c 2-)
update-source-version ${finalAttrs.pname} "$LATEST_VERSION"
'';
});
};
meta = {
description = "LSP for angular completions, AOT diagnostic, quick info and go to definitions";
homepage = "https://github.com/angular/vscode-ng-language-service";
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
changelog = "https://github.com/angular/vscode-ng-language-service/blob/${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
mainProgram = "ngserver";
maintainers = with lib.maintainers; [ tricktron ];
};
})

View File

@ -1,39 +1,39 @@
{ lib {
, stdenv lib,
, fetchFromGitLab stdenv,
, buildPackages fetchFromGitLab,
, cargo buildPackages,
, meson cargo,
, ninja meson,
, pkg-config ninja,
, desktop-file-utils pkg-config,
, rustPlatform desktop-file-utils,
, rustc rustPlatform,
, wrapGAppsHook4 rustc,
, darwin wrapGAppsHook4,
, gettext darwin,
, glib gettext,
, gtk4 glib,
, libadwaita gtk4,
, libiconv libadwaita,
libiconv,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "bustle"; pname = "bustle";
version = "0.9.2"; version = "0.10.0";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
owner = "World"; owner = "World";
repo = "bustle"; repo = "bustle";
rev = finalAttrs.version; rev = finalAttrs.version;
hash = "sha256-/B1rY8epcP0OFv+kVgv4Jx6x/oK3XpNnZcpSGvdIPx0="; hash = "sha256-5ZZiRD64OOMtTNxI0uvilGM22rsJv7vU3yPDY8ROrxU=";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) src; inherit (finalAttrs) pname version src;
name = "bustle-${finalAttrs.version}"; hash = "sha256-tUSGldWeCLEHi35bDLMnfjnfofF2Qse5uBu2mDGJrsE=";
hash = "sha256-r29Z+6P+yuCpOBUE3vkESd15lcGXs5+ZTBiQ9nW6DJ4=";
}; };
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
@ -60,17 +60,17 @@ stdenv.mkDerivation (finalAttrs: {
glib glib
gtk4 gtk4
libadwaita libadwaita
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Foundation
libiconv
]; ];
meta = with lib; { meta = {
description = "Graphical D-Bus message analyser and profiler"; description = "Graphical D-Bus message analyser and profiler";
homepage = "https://gitlab.gnome.org/World/bustle"; homepage = "https://gitlab.gnome.org/World/bustle";
license = licenses.lgpl21Plus; license = lib.licenses.lgpl21Plus;
maintainers = with maintainers; [ jtojnar ]; maintainers = with lib.maintainers; [
jtojnar
aleksana
];
mainProgram = "bustle"; mainProgram = "bustle";
platforms = platforms.all; platforms = lib.platforms.all;
}; };
}) })

View File

@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4b2b789..48d9be0 100644 index 54e2012..a9b6b0e 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -92,6 +92,7 @@ find_package(pugixml REQUIRED) @@ -149,6 +149,7 @@ find_package(pugixml REQUIRED)
find_package(RapidJSON REQUIRED) find_package(RapidJSON REQUIRED)
find_package(Boost COMPONENTS program_options filesystem nowide REQUIRED) find_package(Boost COMPONENTS program_options filesystem nowide REQUIRED)
find_package(libzip REQUIRED) find_package(libzip REQUIRED)

View File

@ -0,0 +1,13 @@
diff --git a/src/Cafe/CMakeLists.txt.orig b/src/Cafe/CMakeLists.txt
index 91d257b..cff779a 100644
--- a/src/Cafe/CMakeLists.txt
+++ b/src/Cafe/CMakeLists.txt
@@ -545,7 +545,7 @@ target_link_libraries(CemuCafe PRIVATE
Boost::nowide
CURL::libcurl
fmt::fmt
- glslang::SPIRV
+ glslang::glslang
ih264d
OpenSSL::Crypto
OpenSSL::SSL

View File

@ -47,15 +47,16 @@ let
hash = "sha256-gf47uLeNiXQic43buB5ZnMqiotlUfIyAsP+3H7yJuFg="; hash = "sha256-gf47uLeNiXQic43buB5ZnMqiotlUfIyAsP+3H7yJuFg=";
}; };
}; };
in stdenv.mkDerivation (finalAttrs: { in
stdenv.mkDerivation (finalAttrs: {
pname = "cemu"; pname = "cemu";
version = "2.0-92"; version = "2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cemu-project"; owner = "cemu-project";
repo = "Cemu"; repo = "Cemu";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-bjt+2RzmG8iKcdyka4HsHM5NEzCwGah4s9eiywSHXbw="; hash = "sha256-d4FMAj99SPj5S1p5nAUFNo386ZJvWxOKD9iGxHJYVBI=";
}; };
patches = [ patches = [
@ -63,6 +64,7 @@ in stdenv.mkDerivation (finalAttrs: {
# > The following imported targets are referenced, but are missing: # > The following imported targets are referenced, but are missing:
# > SPIRV-Tools-opt # > SPIRV-Tools-opt
./0000-spirv-tools-opt-cmakelists.patch ./0000-spirv-tools-opt-cmakelists.patch
./0001-glslang-cmake-target.patch
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
@ -113,13 +115,18 @@ in stdenv.mkDerivation (finalAttrs: {
strictDeps = true; strictDeps = true;
preConfigure = let preConfigure =
tag = lib.last (lib.splitString "-" finalAttrs.version); let
in '' tag = lib.splitString "." (lib.last (lib.splitString "-" finalAttrs.version));
majorv = builtins.elemAt tag 0;
minorv = builtins.elemAt tag 1;
in
''
rm -rf dependencies/imgui rm -rf dependencies/imgui
# cemu expects imgui source code, not just header files # cemu expects imgui source code, not just header files
ln -s ${imgui'.src} dependencies/imgui ln -s ${imgui'.src} dependencies/imgui
substituteInPlace src/Common/version.h --replace-fail " (experimental)" "-${tag} (experimental)" substituteInPlace CMakeLists.txt --replace-fail "EMULATOR_VERSION_MAJOR \"0\"" "EMULATOR_VERSION_MAJOR \"${majorv}\""
substituteInPlace CMakeLists.txt --replace-fail "EMULATOR_VERSION_MINOR \"0\"" "EMULATOR_VERSION_MINOR \"${minorv}\""
substituteInPlace dependencies/gamemode/lib/gamemode_client.h --replace-fail "libgamemode.so.0" "${gamemode.lib}/lib/libgamemode.so.0" substituteInPlace dependencies/gamemode/lib/gamemode_client.h --replace-fail "libgamemode.so.0" "${gamemode.lib}/lib/libgamemode.so.0"
''; '';
@ -139,9 +146,11 @@ in stdenv.mkDerivation (finalAttrs: {
runHook postInstall runHook postInstall
''; '';
preFixup = let preFixup =
let
libs = [ vulkan-loader ] ++ cubeb.passthru.backendLibs; libs = [ vulkan-loader ] ++ cubeb.passthru.backendLibs;
in '' in
''
gappsWrapperArgs+=( gappsWrapperArgs+=(
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libs}" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libs}"
) )
@ -161,7 +170,11 @@ in stdenv.mkDerivation (finalAttrs: {
homepage = "https://cemu.info"; homepage = "https://cemu.info";
license = lib.licenses.mpl20; license = lib.licenses.mpl20;
mainProgram = "cemu"; mainProgram = "cemu";
maintainers = with lib.maintainers; [ zhaofengli baduhai AndersonTorres ]; maintainers = with lib.maintainers; [
zhaofengli
baduhai
AndersonTorres
];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
}; };
}) })

View File

@ -1,12 +1,13 @@
{ {
buildGoModule, buildGoModule,
dependabot-cli, dependabot-cli,
dockerTools,
fetchFromGitHub, fetchFromGitHub,
installShellFiles, installShellFiles,
lib, lib,
testers,
dockerTools,
makeWrapper, makeWrapper,
symlinkJoin,
testers,
}: }:
let let
pname = "dependabot-cli"; pname = "dependabot-cli";
@ -65,13 +66,6 @@ buildGoModule {
--bash <($out/bin/dependabot completion bash) \ --bash <($out/bin/dependabot completion bash) \
--fish <($out/bin/dependabot completion fish) \ --fish <($out/bin/dependabot completion fish) \
--zsh <($out/bin/dependabot completion zsh) --zsh <($out/bin/dependabot completion zsh)
# Create a wrapper that pins the docker images that are depended upon
makeWrapper $out/bin/dependabot $out/bin/dependabot-pinned \
--run "docker load --input ${updateJobProxy}" \
--add-flags "--proxy-image=dependabot-update-job-proxy:${tag}" \
--run "docker load --input ${updaterGitHubActions}" \
--add-flags "--updater-image=dependabot-updater-github-actions:${tag}"
''; '';
checkFlags = [ checkFlags = [
@ -83,6 +77,20 @@ buildGoModule {
$out/bin/dependabot --help $out/bin/dependabot --help
''; '';
passthru.withDockerImages = symlinkJoin {
name = "dependabot-cli-with-docker-images";
paths = [ dependabot-cli ];
buildInputs = [ makeWrapper ];
postBuild = ''
# Create a wrapper that pins the docker images that are depended upon
wrapProgram $out/bin/dependabot \
--run "docker load --input ${updateJobProxy} >&2" \
--add-flags "--proxy-image=dependabot-update-job-proxy:${tag}" \
--run "docker load --input ${updaterGitHubActions} >&2" \
--add-flags "--updater-image=dependabot-updater-github-actions:${tag}"
'';
};
passthru.tests.version = testers.testVersion { passthru.tests.version = testers.testVersion {
package = dependabot-cli; package = dependabot-cli;
command = "dependabot --version"; command = "dependabot --version";

View File

@ -0,0 +1,30 @@
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "efmt";
version = "0.18.2";
src = fetchFromGitHub {
owner = "sile";
repo = "efmt";
rev = version;
hash = "sha256-sS6OqcVuRZXGjrTv5gYz3ECrHNOsu/1eN7Jqs9QRm3Q=";
};
cargoHash = "sha256-gcgKOgWdQwSFN9WMTJ/PBob+iuAqG+yTrSnbevM+csI=";
meta = {
description = "Erlang code formatter";
homepage = "https://github.com/sile/efmt";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ haruki7049 ];
mainProgram = "efmt";
};
}

View File

@ -1,33 +1,34 @@
{ stdenv {
, lib stdenv,
, fetchFromGitLab lib,
, gitUpdater fetchFromGitLab,
, appstream-glib gitUpdater,
, desktop-file-utils appstream-glib,
, fwupd desktop-file-utils,
, gettext fwupd,
, glib gettext,
, gtk4 glib,
, libadwaita gtk4,
, libxmlb libadwaita,
, meson libxmlb,
, ninja meson,
, pkg-config ninja,
, systemd pkg-config,
, help2man systemd,
, wrapGAppsHook4 help2man,
wrapGAppsHook4,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "gnome-firmware"; pname = "gnome-firmware";
version = "46.0"; version = "47.0";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
owner = "World"; owner = "World";
repo = "gnome-firmware"; repo = "gnome-firmware";
rev = version; rev = finalAttrs.version;
sha256 = "sha256-tEMSlKsqqPMZA0Gr89+u3dmAmZ7ffQm/2i1AB93y05E="; sha256 = "sha256-dI9tE/I+14IhYZ+IDLErPunlT4L29AudbZXh0at4jKQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -66,4 +67,4 @@ stdenv.mkDerivation rec {
maintainers = teams.gnome.members; maintainers = teams.gnome.members;
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View File

@ -0,0 +1,52 @@
{
stdenv,
lib,
fetchFromGitHub,
nodejs,
pnpm_8,
}:
stdenv.mkDerivation rec {
pname = "it-tools";
version = "2024.10.22-7ca5933";
src = fetchFromGitHub {
owner = "CorentinTh";
repo = "it-tools";
rev = "v${version}";
hash = "sha256-SQAZv+9tINRH10lewcuv8G2qwfulLOP8sGjX47LxeUk=";
};
nativeBuildInputs = [
nodejs
pnpm_8.configHook
];
pnpmDeps = pnpm_8.fetchDeps {
inherit pname version src;
hash = "sha256-m1eXBE5rakcq8NGnPC9clAAvNJQrN5RuSQ94zfgGZxw=";
};
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/lib
cp -R ./dist/* $out/lib/
runHook postInstall
'';
meta = {
description = "Self-hostable website containing handy tools for developers, with great UX";
homepage = "https://it-tools.tech/";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ akotro ];
};
}

View File

@ -1,7 +1,6 @@
{ {
lib, lib,
stdenv, stdenv,
overrideSDK,
fetchFromGitHub, fetchFromGitHub,
buildNpmPackage, buildNpmPackage,
jellyfin, jellyfin,
@ -10,22 +9,10 @@
xcbuild, xcbuild,
pango, pango,
giflib, giflib,
darwin, apple-sdk_11,
darwinMinVersionHook,
}: }:
let buildNpmPackage rec {
# node-canvas builds code that requires aligned_alloc,
# which on Darwin requires at least the 10.15 SDK
stdenv' =
if stdenv.hostPlatform.isDarwin then
overrideSDK stdenv {
darwinMinVersion = "10.15";
darwinSdkVersion = "11.0";
}
else
stdenv;
buildNpmPackage' = buildNpmPackage.override { stdenv = stdenv'; };
in
buildNpmPackage' rec {
pname = "jellyfin-web"; pname = "jellyfin-web";
version = "10.10.0"; version = "10.10.0";
@ -56,7 +43,10 @@ buildNpmPackage' rec {
[ pango ] [ pango ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ ++ lib.optionals stdenv.hostPlatform.isDarwin [
giflib giflib
darwin.apple_sdk.frameworks.CoreText apple-sdk_11
# node-canvas builds code that requires aligned_alloc,
# which on Darwin requires at least the 10.15 SDK
(darwinMinVersionHook "10.15")
]; ];
installPhase = '' installPhase = ''

View File

@ -28,16 +28,16 @@ let
in in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "kanidm"; pname = "kanidm";
version = "1.4.0"; version = "1.4.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-hRYHr4r3+LRiaZoJgs3MA5YtDEoKyeg/ohPAIw3OMyo="; hash = "sha256-cL1XV9UeoRxl7RPZzeeLtgyNjXxeFwpzapnuS292yc4=";
}; };
cargoHash = "sha256-DfTalKTOiReQCreAzbkSjbhMSW5cdOGGg04i/QKPonE="; cargoHash = "sha256-c6HeE0971mBIN9NR7knu8SN0Z2W/u1rvIsE6ZCiHBEs=";
KANIDM_BUILD_PROFILE = "release_nixos_${arch}"; KANIDM_BUILD_PROFILE = "release_nixos_${arch}";

View File

@ -13,13 +13,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "prisma"; pname = "prisma";
version = "5.21.1"; version = "5.22.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "prisma"; owner = "prisma";
repo = "prisma"; repo = "prisma";
rev = finalAttrs.version; rev = finalAttrs.version;
hash = "sha256-75TmTFl1EKLGE3kgghghary4Z2gjEjdguZ//ND3HAkc="; hash = "sha256-Z7zSL2eixoNqWpgzVbiDUG2ViSmJtho7lRmvZ10ft3I=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
pnpmDeps = pnpm_8.fetchDeps { pnpmDeps = pnpm_8.fetchDeps {
inherit (finalAttrs) pname version src; inherit (finalAttrs) pname version src;
hash = "sha256-fu2SJUn2xKm8lKNE8ncMRuNu6snj1J6cnHrJfzg+hJc="; hash = "sha256-2o6ClY0zMctLR4nFmApiYnzXlrN1EqbHkAP/FEcXnEQ=";
}; };
patchPhase = '' patchPhase = ''

View File

@ -15,13 +15,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "signalbackup-tools"; pname = "signalbackup-tools";
version = "20241105-2"; version = "20241106-1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bepaald"; owner = "bepaald";
repo = "signalbackup-tools"; repo = "signalbackup-tools";
rev = version; rev = version;
hash = "sha256-ucyNJTn/wt4X4ptDrMu/XbeQrbeMKms8c0oXqH280H0="; hash = "sha256-klIkNt3AlT/msZl7pYPQaFMl/pdI7rcaeLDZekmTIzY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -14,19 +14,19 @@
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "vencord"; pname = "vencord";
version = "1.10.5"; version = "1.10.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Vendicated"; owner = "Vendicated";
repo = "Vencord"; repo = "Vencord";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-pzb2x5tTDT6yUNURbAok5eQWZHaxP/RUo8T0JECKHJ4="; hash = "sha256-Pp8QpagTgWWHoC+e/iGfEveQYuMDDX7Oz1IAUx8cp3A=";
}; };
pnpmDeps = pnpm.fetchDeps { pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname src; inherit (finalAttrs) pname src;
hash = "sha256-YBWe4MEmFu8cksOIxuTK0deO7q0QuqgOUc9WkUNBwp0="; hash = "sha256-vVzERis1W3QZB/i6SQR9dQR56yDWadKWvFr+nLTQY9Y=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -14,7 +14,7 @@
}: }:
let let
pname = "wl-kbptr"; pname = "wl-kbptr";
version = "0.2.1"; version = "0.2.3";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
inherit pname version; inherit pname version;
@ -22,7 +22,7 @@ stdenv.mkDerivation {
owner = "moverest"; owner = "moverest";
repo = "wl-kbptr"; repo = "wl-kbptr";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-bA4PbWJNM4qWDF5KfNEgeQ5Z/r/Aw3wL8YUMSnzUo0w="; hash = "sha256-4OWy5Q+NSKgzDn12aflZ+YAfacLeOTIhOojiJ2WiqQg=";
}; };
depsBuildBuild = [ pkg-config ]; depsBuildBuild = [ pkg-config ];

View File

@ -7,6 +7,10 @@
pkg-config, pkg-config,
meson, meson,
ninja, ninja,
sphinxygen,
doxygen,
sphinx,
python3Packages,
# runtime # runtime
lv2, lv2,
@ -40,11 +44,13 @@ stdenv.mkDerivation rec {
meson meson
ninja ninja
pkg-config pkg-config
sphinxygen
doxygen
sphinx
python3Packages.sphinx-lv2-theme
]; ];
mesonFlags = [ mesonFlags = [
# docs require sphinxygen
(mesonEnable "docs" false)
(mesonEnable "gtk2" withGtk2) (mesonEnable "gtk2" withGtk2)
(mesonEnable "gtk3" withGtk3) (mesonEnable "gtk3" withGtk3)
(mesonEnable "qt5" withQt5) (mesonEnable "qt5" withQt5)

View File

@ -12,13 +12,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "babl"; pname = "babl";
version = "0.1.108"; version = "0.1.110";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "https://download.gimp.org/pub/babl/${lib.versions.majorMinor finalAttrs.version}/babl-${finalAttrs.version}.tar.xz"; url = "https://download.gimp.org/pub/babl/${lib.versions.majorMinor finalAttrs.version}/babl-${finalAttrs.version}.tar.xz";
hash = "sha256-Jt7+neqresTQ4HbKtJwqDW69DfDDH9IJklpfB+3uFHU="; hash = "sha256-v0e+dUDWJ1OJ9mQx7wMGTfU3YxXiQ9C6tEjGqnE/V0M=";
}; };
patches = [ patches = [

View File

@ -37,6 +37,6 @@ stdenv.mkDerivation rec
homepage = "https://www.openvdb.org"; homepage = "https://www.openvdb.org";
maintainers = [ maintainers.guibou ]; maintainers = [ maintainers.guibou ];
platforms = platforms.unix; platforms = platforms.unix;
license = licenses.mpl20; license = licenses.asl20;
}; };
} }

View File

@ -4,7 +4,7 @@
buildDunePackage rec { buildDunePackage rec {
pname = "mm"; pname = "mm";
version = "0.8.5"; version = "0.8.6";
duneVersion = "3"; duneVersion = "3";
@ -14,7 +14,7 @@ buildDunePackage rec {
owner = "savonet"; owner = "savonet";
repo = "ocaml-mm"; repo = "ocaml-mm";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-/83coQdUoaa1+5yapF/joV87uYpVsmWU7LH867Vmmo0="; sha256 = "sha256-ME6Naza7OvZ/63zEjrPeKq5JwMoMfV2fpkCuZdtCZ/c=";
}; };
buildInputs = [ dune-configurator ]; buildInputs = [ dune-configurator ];

View File

@ -2,7 +2,7 @@
buildDunePackage rec { buildDunePackage rec {
pname = "theora"; pname = "theora";
version = "0.4.0"; version = "0.4.1";
duneVersion = "3"; duneVersion = "3";
@ -10,7 +10,7 @@ buildDunePackage rec {
owner = "savonet"; owner = "savonet";
repo = "ocaml-theora"; repo = "ocaml-theora";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-VN1XYqxMCO0W9tMTqSAwWKv7GErTtRZgnC2SnmmV7+k="; hash = "sha256-2FXB5BOBRQhnpEmdlYBdZZXuXW9K+1cu7akJQDuDAMc=";
}; };
buildInputs = [ dune-configurator ]; buildInputs = [ dune-configurator ];

View File

@ -25,32 +25,35 @@
pytestCheckHook, pytestCheckHook,
pytest-mock, pytest-mock,
pytest-xdist, pytest-xdist,
numpy,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "dbt-common"; pname = "dbt-common";
version = "1.11.0"; version = "1.12.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dbt-labs"; owner = "dbt-labs";
repo = "dbt-common"; repo = "dbt-common";
# Unfortunatly, upstream doesn't tag commits on GitHub, and the pypi source # Unfortunately, upstream doesn't tag commits on GitHub, and the pypi source
# doesn't include tests. TODO: Write an update script that will detect the # doesn't include tests. TODO: Write an update script that will detect the
# version from `dbt_common/__about__.py`. # version from `dbt_common/__about__.py`.
rev = "ed11c6ceb4f29d4a79489469309d9ce9dd1757e6"; rev = "5a401a9e8dd46e4582ac4edd2883e34714e77530";
hash = "sha256-JA6hFQwF7h1tXyCxBVKGgyevdTxyYeN3I/Bwy9uoC0Y="; hash = "sha256-SIMg6ewnE6kY+drqcPlYrxt1XlWBurZU62FI/QnHAHY=";
}; };
patches = [
# https://github.com/dbt-labs/dbt-common/pull/211
./protobuf_5.patch
];
build-system = [ hatchling ]; build-system = [ hatchling ];
pythonRelaxDeps = [ pythonRelaxDeps = [
"agate" "agate"
"deepdiff" "deepdiff"
"protobuf"
]; ];
dependencies = [ dependencies = [
@ -73,12 +76,14 @@ buildPythonPackage rec {
pytest-xdist pytest-xdist
pytest-mock pytest-mock
]; ];
disabledTests = [ disabledTests = [
# Assertion errors (TODO: Notify upstream) # Assertion errors (TODO: Notify upstream)
"test_create_print_json" "test_create_print_json"
"test_events" "test_events"
"test_extra_dict_on_event" "test_extra_dict_on_event"
]; ];
pythonImportsCheck = [ "dbt_common" ]; pythonImportsCheck = [ "dbt_common" ];
meta = { meta = {

View File

@ -0,0 +1,113 @@
From f7c480139015cb8746f3fa751dc72b788d0ce8a0 Mon Sep 17 00:00:00 2001
From: Eric Hauser <ewhauser@gmail.com>
Date: Sat, 19 Oct 2024 15:52:16 -0600
Subject: [PATCH] upgrade protobuf to >=5,<6
---
dbt_common/events/base_types.py | 7 +++++--
dbt_common/events/functions.py | 2 +-
dbt_common/events/types_pb2.py | 18 ++++++++++++++----
pyproject.toml | 4 ++--
4 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/dbt_common/events/base_types.py b/dbt_common/events/base_types.py
index 781b2a0e..2f11e4c7 100644
--- a/dbt_common/events/base_types.py
+++ b/dbt_common/events/base_types.py
@@ -91,15 +91,18 @@ def __getattr__(self, key):
def to_dict(self):
return MessageToDict(
- self.pb_msg, preserving_proto_field_name=True, including_default_value_fields=True
+ self.pb_msg,
+ preserving_proto_field_name=True,
+ always_print_fields_with_no_presence=True,
)
def to_json(self) -> str:
return MessageToJson(
self.pb_msg,
preserving_proto_field_name=True,
- including_default_value_fields=True,
+ always_print_fields_with_no_presence=True,
indent=None,
+ sort_keys=True,
)
def level_tag(self) -> EventLevel:
diff --git a/dbt_common/events/functions.py b/dbt_common/events/functions.py
index 4e055aa4..86d68237 100644
--- a/dbt_common/events/functions.py
+++ b/dbt_common/events/functions.py
@@ -97,7 +97,7 @@ def msg_to_dict(msg: EventMsg) -> dict:
msg_dict = MessageToDict(
msg,
preserving_proto_field_name=True,
- including_default_value_fields=True, # type: ignore
+ always_print_fields_with_no_presence=True,
)
except Exception as exc:
event_type = type(msg).__name__
diff --git a/dbt_common/events/types_pb2.py b/dbt_common/events/types_pb2.py
index 6574462e..1a3b91a5 100644
--- a/dbt_common/events/types_pb2.py
+++ b/dbt_common/events/types_pb2.py
@@ -1,12 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
+# NO CHECKED-IN PROTOBUF GENCODE
# source: types.proto
-# Protobuf Python Version: 4.25.2
+# Protobuf Python Version: 5.28.2
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
+from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
+_runtime_version.ValidateProtobufRuntimeVersion(
+ _runtime_version.Domain.PUBLIC,
+ 5,
+ 28,
+ 2,
+ '',
+ 'types.proto'
+)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
@@ -20,9 +30,9 @@
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'types_pb2', _globals)
-if _descriptor._USE_C_DESCRIPTORS == False:
- DESCRIPTOR._options = None
- _globals['_EVENTINFO_EXTRAENTRY']._options = None
+if not _descriptor._USE_C_DESCRIPTORS:
+ DESCRIPTOR._loaded_options = None
+ _globals['_EVENTINFO_EXTRAENTRY']._loaded_options = None
_globals['_EVENTINFO_EXTRAENTRY']._serialized_options = b'8\001'
_globals['_EVENTINFO']._serialized_start=62
_globals['_EVENTINFO']._serialized_end=335
diff --git a/pyproject.toml b/pyproject.toml
index 2e40385c..c2878d15 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -36,7 +36,7 @@ dependencies = [
"Jinja2>=3.1.3,<4",
"mashumaro[msgpack]>=3.9,<4.0",
"pathspec>=0.9,<0.13",
- "protobuf>=4.0.0,<5.0.0",
+ "protobuf>=5.0,<6.0",
"python-dateutil>=2.0,<3.0",
"requests<3.0.0", # needs to match dbt-core
"typing-extensions>=4.4,<5.0",
@@ -52,7 +52,7 @@ lint = [
"pytest>=7.3,<8.0", # needed for linting tests
"types-Jinja2>=2.11,<3.0",
"types-jsonschema>=4.17,<5.0",
- "types-protobuf>=4.24,<5.0",
+ "types-protobuf>=5.0,<6.0",
"types-python-dateutil>=2.8,<3.0",
"types-PyYAML>=6.0,<7.0",
"types-requests"

View File

@ -1,7 +1,7 @@
{ {
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchFromGitHub,
certifi, certifi,
cryptography, cryptography,
ecdsa, ecdsa,
@ -17,18 +17,13 @@ buildPythonPackage rec {
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "toporin";
hash = "sha256-ccyBvQ00p/uDULzGeJIhIJIiRRrFitsp271wep74DHI="; repo = "pysatochip";
rev = "v${version}";
hash = "sha256-7wA9erk2OA1FyNSzOSWJzjyp9QeYq6C+YA8B0Dk2iQE=";
}; };
postPatch = ''
substituteInPlace requirements.txt \
--replace "cryptography==3.3.2" "cryptography" \
--replace "ecdsa==0.15" "ecdsa" \
--replace "pyopenssl==20.0.0" "pyopenssl"
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
cryptography cryptography
ecdsa ecdsa

View File

@ -2,6 +2,7 @@
fetchFromGitHub, fetchFromGitHub,
buildPythonPackage, buildPythonPackage,
isPy27, isPy27,
setuptools,
cython, cython,
portaudio, portaudio,
cffi, cffi,
@ -13,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "rtmixer"; pname = "rtmixer";
version = "0.1.7"; version = "0.1.7";
format = "setuptools"; pyproject = true;
disabled = isPy27; disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
@ -24,10 +25,16 @@ buildPythonPackage rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
buildInputs = [ portaudio ]; build-system = [ setuptools ];
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ buildInputs = [ portaudio ];
nativeBuildInputs = [
cython
cffi
];
dependencies = [
cffi cffi
pa-ringbuffer pa-ringbuffer
sounddevice sounddevice

View File

@ -15,14 +15,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "tableauserverclient"; pname = "tableauserverclient";
version = "0.33"; version = "0.34";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.9";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-7yj/Ey3mIR2GZ0gtNkrrtoKEmuA5LihZlM9qPhbROQw="; hash = "sha256-0I0HLPCrA5LoGOnspIDeAp5x7jzR4S9dWitpGw0AzbA=";
}; };
postPatch = '' postPatch = ''
@ -35,12 +35,12 @@ buildPythonPackage rec {
"urllib3" "urllib3"
]; ];
nativeBuildInputs = [ build-system = [
setuptools setuptools
versioneer versioneer
]; ];
propagatedBuildInputs = [ dependencies = [
defusedxml defusedxml
requests requests
packaging packaging

View File

@ -426,6 +426,7 @@ let
magick = [ pkgs.imagemagick.dev ]; magick = [ pkgs.imagemagick.dev ];
ModelMetrics = lib.optional stdenv.hostPlatform.isDarwin pkgs.llvmPackages.openmp; ModelMetrics = lib.optional stdenv.hostPlatform.isDarwin pkgs.llvmPackages.openmp;
mvabund = [ pkgs.gsl ]; mvabund = [ pkgs.gsl ];
mcrPioda = [ pkgs.gsl ];
mwaved = [ pkgs.fftw.dev ]; mwaved = [ pkgs.fftw.dev ];
mzR = with pkgs; [ zlib netcdf ]; mzR = with pkgs; [ zlib netcdf ];
nanonext = with pkgs; [ mbedtls nng ]; nanonext = with pkgs; [ mbedtls nng ];
@ -456,6 +457,7 @@ let
RcppGSL = [ pkgs.gsl ]; RcppGSL = [ pkgs.gsl ];
RcppZiggurat = [ pkgs.gsl ]; RcppZiggurat = [ pkgs.gsl ];
reprex = [ pkgs.which ]; reprex = [ pkgs.which ];
resultant = with pkgs; [ gmp.dev mpfr.dev pkg-config ];
rgdal = with pkgs; [ proj.dev gdal ]; rgdal = with pkgs; [ proj.dev gdal ];
Rhisat2 = [ pkgs.which pkgs.hostname ]; Rhisat2 = [ pkgs.which pkgs.hostname ];
gdalcubes = [ pkgs.pkg-config ]; gdalcubes = [ pkgs.pkg-config ];
@ -645,6 +647,7 @@ let
gdalcubes = with pkgs; [ proj.dev gdal sqlite.dev netcdf ]; gdalcubes = with pkgs; [ proj.dev gdal sqlite.dev netcdf ];
rsbml = [ pkgs.libsbml ]; rsbml = [ pkgs.libsbml ];
SuperGauss = [ pkgs.pkg-config pkgs.fftw.dev]; SuperGauss = [ pkgs.pkg-config pkgs.fftw.dev];
ravetools = with pkgs; [ pkg-config fftw.dev];
specklestar = [ pkgs.fftw.dev ]; specklestar = [ pkgs.fftw.dev ];
cartogramR = [ pkgs.fftw.dev ]; cartogramR = [ pkgs.fftw.dev ];
jqr = [ pkgs.jq.out ]; jqr = [ pkgs.jq.out ];
@ -672,6 +675,7 @@ let
Cairo = [ pkgs.pkg-config ]; Cairo = [ pkgs.pkg-config ];
CLVTools = [ pkgs.gsl ]; CLVTools = [ pkgs.gsl ];
excursions = [ pkgs.gsl ]; excursions = [ pkgs.gsl ];
OpenCL = with pkgs; [ opencl-clhpp ocl-icd ];
gpuMagic = [ pkgs.ocl-icd ]; gpuMagic = [ pkgs.ocl-icd ];
JMcmprsk = [ pkgs.gsl ]; JMcmprsk = [ pkgs.gsl ];
KSgeneral = [ pkgs.fftw.dev ]; KSgeneral = [ pkgs.fftw.dev ];
@ -1051,10 +1055,11 @@ let
}); });
timeless = old.timeless.overrideAttrs (attrs: { timeless = old.timeless.overrideAttrs (attrs: {
preConfigure = "patchShebangs configure";
cargoDeps = pkgs.rustPlatform.fetchCargoTarball { cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
src = attrs.src; src = attrs.src;
sourceRoot = "timeless/src/rust"; sourceRoot = "timeless/src/rust";
hash = "sha256-n0/52CV3NzWe7T3N6VoaURMxWrnqeYaUMPKkUy+LRQs="; hash = "sha256-AccuRY3lfTXzaMnaYieKCEJErKo5132oSXgILbFhePI=";
}; };
cargoRoot = "src/rust"; cargoRoot = "src/rust";

View File

@ -30,9 +30,9 @@ dependencies = [
[[package]] [[package]]
name = "ahash" name = "ahash"
version = "0.8.7" version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"getrandom 0.2.11", "getrandom 0.2.11",
@ -41,15 +41,6 @@ dependencies = [
"zerocopy", "zerocopy",
] ]
[[package]]
name = "aho-corasick"
version = "0.7.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
dependencies = [
"memchr",
]
[[package]] [[package]]
name = "aho-corasick" name = "aho-corasick"
version = "1.0.3" version = "1.0.3"
@ -214,15 +205,6 @@ dependencies = [
"num-traits", "num-traits",
] ]
[[package]]
name = "atomic-shim"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67cd4b51d303cf3501c301e8125df442128d3c6d7c69f71b27833d253de47e77"
dependencies = [
"crossbeam-utils",
]
[[package]] [[package]]
name = "atty" name = "atty"
version = "0.2.14" version = "0.2.14"
@ -368,7 +350,7 @@ dependencies = [
"enumflags2", "enumflags2",
"indoc 2.0.3", "indoc 2.0.3",
"insta", "insta",
"query-engine-metrics", "prisma-metrics",
"query-engine-tests", "query-engine-tests",
"query-tests-setup", "query-tests-setup",
"regex", "regex",
@ -447,7 +429,7 @@ version = "2.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8a88e82b9106923b5c4d6edfca9e7db958d4e98a478ec115022e81b9b38e2c8" checksum = "d8a88e82b9106923b5c4d6edfca9e7db958d4e98a478ec115022e81b9b38e2c8"
dependencies = [ dependencies = [
"ahash 0.8.7", "ahash 0.8.11",
"base64 0.13.1", "base64 0.13.1",
"bitvec", "bitvec",
"chrono", "chrono",
@ -512,9 +494,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]] [[package]]
name = "bytes" name = "bytes"
version = "1.4.0" version = "1.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3"
[[package]] [[package]]
name = "cast" name = "cast"
@ -543,11 +525,11 @@ dependencies = [
[[package]] [[package]]
name = "cc" name = "cc"
version = "1.0.83" version = "1.1.30"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" checksum = "b16803a61b81d9eabb7eae2588776c4c1e584b738ede45fdbb4c972cec1e9945"
dependencies = [ dependencies = [
"libc", "shlex",
] ]
[[package]] [[package]]
@ -1101,7 +1083,7 @@ dependencies = [
"hashbrown 0.14.5", "hashbrown 0.14.5",
"lock_api", "lock_api",
"once_cell", "once_cell",
"parking_lot_core 0.9.8", "parking_lot_core",
] ]
[[package]] [[package]]
@ -1226,11 +1208,11 @@ dependencies = [
"expect-test", "expect-test",
"futures", "futures",
"js-sys", "js-sys",
"metrics 0.18.1",
"napi", "napi",
"napi-derive", "napi-derive",
"once_cell", "once_cell",
"pin-project", "pin-project",
"prisma-metrics",
"quaint", "quaint",
"serde", "serde",
"serde-wasm-bindgen", "serde-wasm-bindgen",
@ -1631,7 +1613,7 @@ checksum = "1d930c203dd0b6ff06e0201a4a2fe9149b43c684fd4420555b26d21b1a02956f"
dependencies = [ dependencies = [
"futures-core", "futures-core",
"lock_api", "lock_api",
"parking_lot 0.12.1", "parking_lot",
] ]
[[package]] [[package]]
@ -1781,15 +1763,6 @@ version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7"
[[package]]
name = "hashbrown"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
dependencies = [
"ahash 0.7.8",
]
[[package]] [[package]]
name = "hashbrown" name = "hashbrown"
version = "0.12.3" version = "0.12.3"
@ -1805,7 +1778,7 @@ version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
dependencies = [ dependencies = [
"ahash 0.8.7", "ahash 0.8.11",
"allocator-api2", "allocator-api2",
] ]
@ -1890,7 +1863,7 @@ dependencies = [
"ipconfig", "ipconfig",
"lru-cache", "lru-cache",
"once_cell", "once_cell",
"parking_lot 0.12.1", "parking_lot",
"rand 0.8.5", "rand 0.8.5",
"resolv-conf", "resolv-conf",
"smallvec", "smallvec",
@ -2138,15 +2111,6 @@ dependencies = [
"yaml-rust", "yaml-rust",
] ]
[[package]]
name = "instant"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
dependencies = [
"cfg-if",
]
[[package]] [[package]]
name = "ipconfig" name = "ipconfig"
version = "0.3.2" version = "0.3.2"
@ -2444,15 +2408,6 @@ dependencies = [
"url", "url",
] ]
[[package]]
name = "mach"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa"
dependencies = [
"libc",
]
[[package]] [[package]]
name = "match_cfg" name = "match_cfg"
version = "0.1.0" version = "0.1.0"
@ -2500,91 +2455,47 @@ dependencies = [
[[package]] [[package]]
name = "metrics" name = "metrics"
version = "0.18.1" version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e52eb6380b6d2a10eb3434aec0885374490f5b82c8aaf5cd487a183c98be834" checksum = "884adb57038347dfbaf2d5065887b6cf4312330dc8e94bc30a1a839bd79d3261"
dependencies = [ dependencies = [
"ahash 0.7.8", "ahash 0.8.11",
"metrics-macros", "portable-atomic",
]
[[package]]
name = "metrics"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "142c53885123b68d94108295a09d4afe1a1388ed95b54d5dacd9a454753030f2"
dependencies = [
"ahash 0.7.8",
"metrics-macros",
] ]
[[package]] [[package]]
name = "metrics-exporter-prometheus" name = "metrics-exporter-prometheus"
version = "0.10.0" version = "0.15.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "953cbbb6f9ba4b9304f4df79b98cdc9d14071ed93065a9fca11c00c5d9181b66" checksum = "b4f0c8427b39666bf970460908b213ec09b3b350f20c0c2eabcbba51704a08e6"
dependencies = [ dependencies = [
"hyper", "base64 0.22.1",
"indexmap 1.9.3", "indexmap 2.2.2",
"ipnet", "metrics",
"metrics 0.19.0", "metrics-util",
"metrics-util 0.13.0",
"parking_lot 0.11.2",
"quanta", "quanta",
"thiserror", "thiserror",
"tokio",
"tracing",
]
[[package]]
name = "metrics-macros"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49e30813093f757be5cf21e50389a24dc7dbb22c49f23b7e8f51d69b508a5ffa"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
] ]
[[package]] [[package]]
name = "metrics-util" name = "metrics-util"
version = "0.12.1" version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65a9e83b833e1d2e07010a386b197c13aa199bbd0fca5cf69bfa147972db890a" checksum = "4259040465c955f9f2f1a4a8a16dc46726169bca0f88e8fb2dbeced487c3e828"
dependencies = [ dependencies = [
"aho-corasick 0.7.20", "aho-corasick",
"atomic-shim",
"crossbeam-epoch", "crossbeam-epoch",
"crossbeam-utils", "crossbeam-utils",
"hashbrown 0.11.2", "hashbrown 0.14.5",
"indexmap 1.9.3", "indexmap 2.2.2",
"metrics 0.18.1", "metrics",
"num_cpus", "num_cpus",
"ordered-float", "ordered-float",
"parking_lot 0.11.2",
"quanta", "quanta",
"radix_trie", "radix_trie",
"sketches-ddsketch", "sketches-ddsketch",
] ]
[[package]]
name = "metrics-util"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd1f4b69bef1e2b392b2d4a12902f2af90bb438ba4a66aa222d1023fa6561b50"
dependencies = [
"atomic-shim",
"crossbeam-epoch",
"crossbeam-utils",
"hashbrown 0.11.2",
"metrics 0.19.0",
"num_cpus",
"parking_lot 0.11.2",
"quanta",
"sketches-ddsketch",
]
[[package]] [[package]]
name = "mime" name = "mime"
version = "0.3.17" version = "0.3.17"
@ -2620,9 +2531,9 @@ dependencies = [
[[package]] [[package]]
name = "mobc" name = "mobc"
version = "0.8.3" version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90eb49dc5d193287ff80e72a86f34cfb27aae562299d22fea215e06ea1059dd3" checksum = "316a7d198b51958a0ab57248bf5f42d8409551203cb3c821d5925819a8d5415f"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures-channel", "futures-channel",
@ -2630,7 +2541,7 @@ dependencies = [
"futures-timer", "futures-timer",
"futures-util", "futures-util",
"log", "log",
"metrics 0.18.1", "metrics",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -2721,15 +2632,16 @@ dependencies = [
"mongodb", "mongodb",
"mongodb-client", "mongodb-client",
"pretty_assertions", "pretty_assertions",
"prisma-metrics",
"prisma-value", "prisma-value",
"psl", "psl",
"query-connector", "query-connector",
"query-engine-metrics",
"query-structure", "query-structure",
"rand 0.8.5", "rand 0.8.5",
"regex", "regex",
"serde", "serde",
"serde_json", "serde_json",
"telemetry",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -2883,9 +2795,9 @@ dependencies = [
[[package]] [[package]]
name = "napi" name = "napi"
version = "2.15.1" version = "2.16.13"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43792514b0c95c5beec42996da0c1b39265b02b75c97baa82d163d3ef55cbfa7" checksum = "214f07a80874bb96a8433b3cdfc84980d56c7b02e1a0d7ba4ba0db5cef785e2b"
dependencies = [ dependencies = [
"bitflags 2.4.0", "bitflags 2.4.0",
"ctor", "ctor",
@ -2905,9 +2817,9 @@ checksum = "ebd4419172727423cf30351406c54f6cc1b354a2cfb4f1dba3e6cd07f6d5522b"
[[package]] [[package]]
name = "napi-derive" name = "napi-derive"
version = "2.15.0" version = "2.16.12"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7622f0dbe0968af2dacdd64870eee6dee94f93c989c841f1ad8f300cf1abd514" checksum = "17435f7a00bfdab20b0c27d9c56f58f6499e418252253081bfff448099da31d1"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"convert_case 0.6.0", "convert_case 0.6.0",
@ -2919,9 +2831,9 @@ dependencies = [
[[package]] [[package]]
name = "napi-derive-backend" name = "napi-derive-backend"
version = "1.0.59" version = "1.0.74"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ec514d65fce18a959be55e7f683ac89c6cb850fb59b09e25ab777fd5a4a8d9e" checksum = "967c485e00f0bf3b1bdbe510a38a4606919cf1d34d9a37ad41f25a81aa077abe"
dependencies = [ dependencies = [
"convert_case 0.6.0", "convert_case 0.6.0",
"once_cell", "once_cell",
@ -2934,9 +2846,9 @@ dependencies = [
[[package]] [[package]]
name = "napi-sys" name = "napi-sys"
version = "2.3.0" version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2503fa6af34dc83fb74888df8b22afe933b58d37daf7d80424b1c60c68196b8b" checksum = "427802e8ec3a734331fec1035594a210ce1ff4dc5bc1950530920ab717964ea3"
dependencies = [ dependencies = [
"libloading 0.8.1", "libloading 0.8.1",
] ]
@ -3217,9 +3129,9 @@ dependencies = [
[[package]] [[package]]
name = "ordered-float" name = "ordered-float"
version = "2.10.0" version = "4.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7940cf2ca942593318d07fcf2596cdca60a85c9e7fab408a5e21a4f9dcd40d87" checksum = "44d501f1a72f71d3c063a6bbc8f7271fa73aa09fe5d6283b6571e2ed176a2537"
dependencies = [ dependencies = [
"num-traits", "num-traits",
] ]
@ -3248,17 +3160,6 @@ version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae"
[[package]]
name = "parking_lot"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
dependencies = [
"instant",
"lock_api",
"parking_lot_core 0.8.6",
]
[[package]] [[package]]
name = "parking_lot" name = "parking_lot"
version = "0.12.1" version = "0.12.1"
@ -3266,21 +3167,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
dependencies = [ dependencies = [
"lock_api", "lock_api",
"parking_lot_core 0.9.8", "parking_lot_core",
]
[[package]]
name = "parking_lot_core"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc"
dependencies = [
"cfg-if",
"instant",
"libc",
"redox_syscall 0.2.16",
"smallvec",
"winapi",
] ]
[[package]] [[package]]
@ -3515,10 +3402,16 @@ dependencies = [
"plotters-backend", "plotters-backend",
] ]
[[package]]
name = "portable-atomic"
version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
[[package]] [[package]]
name = "postgres-native-tls" name = "postgres-native-tls"
version = "0.5.0" version = "0.5.0"
source = "git+https://github.com/prisma/rust-postgres?branch=pgbouncer-mode#54a490bc6afa315abb9867304fb67e8b12a8fbf3" source = "git+https://github.com/prisma/rust-postgres?branch=pgbouncer-mode#c62b9928d402685e152161907e8480603c29ef65"
dependencies = [ dependencies = [
"native-tls", "native-tls",
"tokio", "tokio",
@ -3528,10 +3421,10 @@ dependencies = [
[[package]] [[package]]
name = "postgres-protocol" name = "postgres-protocol"
version = "0.6.4" version = "0.6.7"
source = "git+https://github.com/prisma/rust-postgres?branch=pgbouncer-mode#54a490bc6afa315abb9867304fb67e8b12a8fbf3" source = "git+https://github.com/prisma/rust-postgres?branch=pgbouncer-mode#c62b9928d402685e152161907e8480603c29ef65"
dependencies = [ dependencies = [
"base64 0.13.1", "base64 0.22.1",
"byteorder", "byteorder",
"bytes", "bytes",
"fallible-iterator 0.2.0", "fallible-iterator 0.2.0",
@ -3545,8 +3438,8 @@ dependencies = [
[[package]] [[package]]
name = "postgres-types" name = "postgres-types"
version = "0.2.4" version = "0.2.8"
source = "git+https://github.com/prisma/rust-postgres?branch=pgbouncer-mode#54a490bc6afa315abb9867304fb67e8b12a8fbf3" source = "git+https://github.com/prisma/rust-postgres?branch=pgbouncer-mode#c62b9928d402685e152161907e8480603c29ef65"
dependencies = [ dependencies = [
"bit-vec", "bit-vec",
"bytes", "bytes",
@ -3616,6 +3509,27 @@ dependencies = [
"structopt", "structopt",
] ]
[[package]]
name = "prisma-metrics"
version = "0.1.0"
dependencies = [
"derive_more",
"expect-test",
"futures",
"metrics",
"metrics-exporter-prometheus",
"metrics-util",
"once_cell",
"parking_lot",
"pin-project",
"serde",
"serde_json",
"tokio",
"tracing",
"tracing-futures",
"tracing-subscriber",
]
[[package]] [[package]]
name = "prisma-schema-build" name = "prisma-schema-build"
version = "0.1.0" version = "0.1.0"
@ -3842,7 +3756,6 @@ dependencies = [
"indoc 0.3.6", "indoc 0.3.6",
"itertools 0.12.0", "itertools 0.12.0",
"lru-cache", "lru-cache",
"metrics 0.18.1",
"mobc", "mobc",
"mysql_async", "mysql_async",
"names 0.11.0", "names 0.11.0",
@ -3853,6 +3766,7 @@ dependencies = [
"percent-encoding", "percent-encoding",
"postgres-native-tls", "postgres-native-tls",
"postgres-types", "postgres-types",
"prisma-metrics",
"quaint-test-macros", "quaint-test-macros",
"quaint-test-setup", "quaint-test-setup",
"regex", "regex",
@ -3866,7 +3780,7 @@ dependencies = [
"tokio-postgres", "tokio-postgres",
"tokio-util 0.7.8", "tokio-util 0.7.8",
"tracing", "tracing",
"tracing-core", "tracing-futures",
"url", "url",
"uuid", "uuid",
"ws_stream_tungstenite", "ws_stream_tungstenite",
@ -3898,16 +3812,15 @@ dependencies = [
[[package]] [[package]]
name = "quanta" name = "quanta"
version = "0.9.3" version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20afe714292d5e879d8b12740aa223c6a88f118af41870e8b6196e39a02238a8" checksum = "8e5167a477619228a0b284fac2674e3c388cba90631d7b7de620e6f1fcd08da5"
dependencies = [ dependencies = [
"crossbeam-utils", "crossbeam-utils",
"libc", "libc",
"mach",
"once_cell", "once_cell",
"raw-cpuid", "raw-cpuid",
"wasi 0.10.2+wasi-snapshot-preview1", "wasi 0.11.0+wasi-snapshot-preview1",
"web-sys", "web-sys",
"winapi", "winapi",
] ]
@ -3926,6 +3839,7 @@ dependencies = [
"query-structure", "query-structure",
"serde", "serde",
"serde_json", "serde_json",
"telemetry",
"thiserror", "thiserror",
"user-facing-errors", "user-facing-errors",
"uuid", "uuid",
@ -3942,6 +3856,7 @@ dependencies = [
"crossbeam-channel", "crossbeam-channel",
"crosstarget-utils", "crosstarget-utils",
"cuid", "cuid",
"derive_more",
"enumflags2", "enumflags2",
"futures", "futures",
"indexmap 2.2.2", "indexmap 2.2.2",
@ -3950,13 +3865,14 @@ dependencies = [
"once_cell", "once_cell",
"opentelemetry", "opentelemetry",
"petgraph 0.4.13", "petgraph 0.4.13",
"prisma-metrics",
"psl", "psl",
"query-connector", "query-connector",
"query-engine-metrics",
"query-structure", "query-structure",
"schema", "schema",
"serde", "serde",
"serde_json", "serde_json",
"telemetry",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -3983,17 +3899,18 @@ dependencies = [
"mongodb-query-connector", "mongodb-query-connector",
"opentelemetry", "opentelemetry",
"opentelemetry-otlp", "opentelemetry-otlp",
"prisma-metrics",
"psl", "psl",
"quaint", "quaint",
"query-connector", "query-connector",
"query-core", "query-core",
"query-engine-metrics",
"request-handlers", "request-handlers",
"serde", "serde",
"serde_json", "serde_json",
"serial_test", "serial_test",
"sql-query-connector", "sql-query-connector",
"structopt", "structopt",
"telemetry",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -4028,6 +3945,7 @@ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
"sql-query-connector", "sql-query-connector",
"telemetry",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -4047,12 +3965,13 @@ dependencies = [
"connection-string", "connection-string",
"napi", "napi",
"opentelemetry", "opentelemetry",
"prisma-metrics",
"psl", "psl",
"query-connector", "query-connector",
"query-core", "query-core",
"query-engine-metrics",
"serde", "serde",
"serde_json", "serde_json",
"telemetry",
"thiserror", "thiserror",
"tracing", "tracing",
"tracing-futures", "tracing-futures",
@ -4064,24 +3983,6 @@ dependencies = [
"wasm-bindgen", "wasm-bindgen",
] ]
[[package]]
name = "query-engine-metrics"
version = "0.1.0"
dependencies = [
"expect-test",
"metrics 0.18.1",
"metrics-exporter-prometheus",
"metrics-util 0.12.1",
"once_cell",
"parking_lot 0.12.1",
"serde",
"serde_json",
"tokio",
"tracing",
"tracing-futures",
"tracing-subscriber",
]
[[package]] [[package]]
name = "query-engine-node-api" name = "query-engine-node-api"
version = "0.1.0" version = "0.1.0"
@ -4096,17 +3997,18 @@ dependencies = [
"napi-build", "napi-build",
"napi-derive", "napi-derive",
"opentelemetry", "opentelemetry",
"prisma-metrics",
"psl", "psl",
"quaint", "quaint",
"query-connector", "query-connector",
"query-core", "query-core",
"query-engine-common", "query-engine-common",
"query-engine-metrics",
"query-structure", "query-structure",
"request-handlers", "request-handlers",
"serde", "serde",
"serde_json", "serde_json",
"sql-query-connector", "sql-query-connector",
"telemetry",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -4132,9 +4034,9 @@ dependencies = [
"itertools 0.12.0", "itertools 0.12.0",
"once_cell", "once_cell",
"paste", "paste",
"prisma-metrics",
"prisma-value", "prisma-value",
"psl", "psl",
"query-engine-metrics",
"query-test-macros", "query-test-macros",
"query-tests-setup", "query-tests-setup",
"serde_json", "serde_json",
@ -4168,6 +4070,7 @@ dependencies = [
"serde-wasm-bindgen", "serde-wasm-bindgen",
"serde_json", "serde_json",
"sql-query-connector", "sql-query-connector",
"telemetry",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -4224,12 +4127,12 @@ dependencies = [
"nom", "nom",
"once_cell", "once_cell",
"parse-hyperlinks", "parse-hyperlinks",
"prisma-metrics",
"psl", "psl",
"qe-setup", "qe-setup",
"quaint", "quaint",
"query-core", "query-core",
"query-engine", "query-engine",
"query-engine-metrics",
"query-structure", "query-structure",
"regex", "regex",
"request-handlers", "request-handlers",
@ -4237,6 +4140,7 @@ dependencies = [
"serde_json", "serde_json",
"sql-query-connector", "sql-query-connector",
"strip-ansi-escapes", "strip-ansi-escapes",
"telemetry",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -4388,11 +4292,11 @@ dependencies = [
[[package]] [[package]]
name = "raw-cpuid" name = "raw-cpuid"
version = "10.7.0" version = "11.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c297679cb867470fa8c9f67dbba74a78d78e3e98d7cf2b08d6d71540f797332" checksum = "1ab240315c661615f2ee9f0f2cd32d5a7343a84d5ebcccb99d46e6637565e7b0"
dependencies = [ dependencies = [
"bitflags 1.3.2", "bitflags 2.4.0",
] ]
[[package]] [[package]]
@ -4426,15 +4330,6 @@ dependencies = [
"rand_core 0.3.1", "rand_core 0.3.1",
] ]
[[package]]
name = "redox_syscall"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags 1.3.2",
]
[[package]] [[package]]
name = "redox_syscall" name = "redox_syscall"
version = "0.3.5" version = "0.3.5"
@ -4444,13 +4339,22 @@ dependencies = [
"bitflags 1.3.2", "bitflags 1.3.2",
] ]
[[package]]
name = "redox_syscall"
version = "0.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f"
dependencies = [
"bitflags 2.4.0",
]
[[package]] [[package]]
name = "regex" name = "regex"
version = "1.10.6" version = "1.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
dependencies = [ dependencies = [
"aho-corasick 1.0.3", "aho-corasick",
"memchr", "memchr",
"regex-automata 0.4.5", "regex-automata 0.4.5",
"regex-syntax 0.8.2", "regex-syntax 0.8.2",
@ -4471,7 +4375,7 @@ version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd"
dependencies = [ dependencies = [
"aho-corasick 1.0.3", "aho-corasick",
"memchr", "memchr",
"regex-syntax 0.8.2", "regex-syntax 0.8.2",
] ]
@ -4521,6 +4425,7 @@ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
"sql-query-connector", "sql-query-connector",
"telemetry",
"thiserror", "thiserror",
"tracing", "tracing",
"url", "url",
@ -5069,7 +4974,7 @@ dependencies = [
"futures", "futures",
"lazy_static", "lazy_static",
"log", "log",
"parking_lot 0.12.1", "parking_lot",
"serial_test_derive", "serial_test_derive",
] ]
@ -5187,9 +5092,9 @@ checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de"
[[package]] [[package]]
name = "sketches-ddsketch" name = "sketches-ddsketch"
version = "0.1.3" version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04d2ecae5fcf33b122e2e6bd520a57ccf152d2dde3b38c71039df1a6867264ee" checksum = "85636c14b73d81f541e525f585c0a2109e6744e1565b5c1668e31c70c10ed65c"
[[package]] [[package]]
name = "slab" name = "slab"
@ -5202,9 +5107,9 @@ dependencies = [
[[package]] [[package]]
name = "smallvec" name = "smallvec"
version = "1.11.0" version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
[[package]] [[package]]
name = "socket2" name = "socket2"
@ -5328,6 +5233,7 @@ dependencies = [
"rand 0.8.5", "rand 0.8.5",
"serde", "serde",
"serde_json", "serde_json",
"telemetry",
"thiserror", "thiserror",
"tokio", "tokio",
"tracing", "tracing",
@ -5608,6 +5514,36 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
[[package]]
name = "telemetry"
version = "0.1.0"
dependencies = [
"async-trait",
"crossbeam-channel",
"crosstarget-utils",
"cuid",
"derive_more",
"enumflags2",
"futures",
"indexmap 2.2.2",
"itertools 0.12.0",
"lru 0.7.8",
"once_cell",
"opentelemetry",
"prisma-metrics",
"psl",
"rand 0.8.5",
"serde",
"serde_json",
"thiserror",
"tokio",
"tracing",
"tracing-futures",
"tracing-opentelemetry",
"tracing-subscriber",
"uuid",
]
[[package]] [[package]]
name = "tempfile" name = "tempfile"
version = "3.7.1" version = "3.7.1"
@ -5820,7 +5756,7 @@ dependencies = [
"libc", "libc",
"mio", "mio",
"num_cpus", "num_cpus",
"parking_lot 0.12.1", "parking_lot",
"pin-project-lite", "pin-project-lite",
"signal-hook-registry", "signal-hook-registry",
"socket2 0.5.7", "socket2 0.5.7",
@ -5861,8 +5797,8 @@ dependencies = [
[[package]] [[package]]
name = "tokio-postgres" name = "tokio-postgres"
version = "0.7.7" version = "0.7.12"
source = "git+https://github.com/prisma/rust-postgres?branch=pgbouncer-mode#54a490bc6afa315abb9867304fb67e8b12a8fbf3" source = "git+https://github.com/prisma/rust-postgres?branch=pgbouncer-mode#c62b9928d402685e152161907e8480603c29ef65"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"byteorder", "byteorder",
@ -5871,15 +5807,17 @@ dependencies = [
"futures-channel", "futures-channel",
"futures-util", "futures-util",
"log", "log",
"parking_lot 0.12.1", "parking_lot",
"percent-encoding", "percent-encoding",
"phf", "phf",
"pin-project-lite", "pin-project-lite",
"postgres-protocol", "postgres-protocol",
"postgres-types", "postgres-types",
"rand 0.8.5",
"socket2 0.5.7", "socket2 0.5.7",
"tokio", "tokio",
"tokio-util 0.7.8", "tokio-util 0.7.8",
"whoami",
] ]
[[package]] [[package]]
@ -6197,7 +6135,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"rand 0.8.5", "rand 0.3.23",
"static_assertions", "static_assertions",
] ]
@ -6446,12 +6384,6 @@ version = "0.9.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
[[package]]
name = "wasi"
version = "0.10.2+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
[[package]] [[package]]
name = "wasi" name = "wasi"
version = "0.11.0+wasi-snapshot-preview1" version = "0.11.0+wasi-snapshot-preview1"
@ -6459,20 +6391,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]] [[package]]
name = "wasm-bindgen" name = "wasite"
version = "0.2.92" version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" checksum = "b8dad83b4f25e74f184f64c43b150b91efe7647395b42289f38e50566d82855b"
[[package]]
name = "wasm-bindgen"
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"once_cell",
"wasm-bindgen-macro", "wasm-bindgen-macro",
] ]
[[package]] [[package]]
name = "wasm-bindgen-backend" name = "wasm-bindgen-backend"
version = "0.2.92" version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b"
dependencies = [ dependencies = [
"bumpalo", "bumpalo",
"log", "log",
@ -6497,9 +6436,9 @@ dependencies = [
[[package]] [[package]]
name = "wasm-bindgen-macro" name = "wasm-bindgen-macro"
version = "0.2.92" version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf"
dependencies = [ dependencies = [
"quote", "quote",
"wasm-bindgen-macro-support", "wasm-bindgen-macro-support",
@ -6507,9 +6446,9 @@ dependencies = [
[[package]] [[package]]
name = "wasm-bindgen-macro-support" name = "wasm-bindgen-macro-support"
version = "0.2.92" version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -6520,9 +6459,9 @@ dependencies = [
[[package]] [[package]]
name = "wasm-bindgen-shared" name = "wasm-bindgen-shared"
version = "0.2.92" version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484"
[[package]] [[package]]
name = "wasm-logger" name = "wasm-logger"
@ -6581,6 +6520,17 @@ dependencies = [
"once_cell", "once_cell",
] ]
[[package]]
name = "whoami"
version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "372d5b87f58ec45c384ba03563b03544dc5fadc3983e434b286913f5b4a9bb6d"
dependencies = [
"redox_syscall 0.5.7",
"wasite",
"web-sys",
]
[[package]] [[package]]
name = "widestring" name = "widestring"
version = "1.0.2" version = "1.0.2"

View File

@ -13,13 +13,13 @@
# function correctly. # function correctly.
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "prisma-engines"; pname = "prisma-engines";
version = "5.21.1"; version = "5.22.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "prisma"; owner = "prisma";
repo = "prisma-engines"; repo = "prisma-engines";
rev = version; rev = version;
hash = "sha256-zVGnAFvxBRh7YGXET8YjDI+qXay6StgG618mRfpc4kw="; hash = "sha256-aCzm7pEsgbZ4ZNir3DLNnUlmiydOpLNcW2FpIQ44B6E=";
}; };
# Use system openssl. # Use system openssl.
@ -32,7 +32,7 @@ rustPlatform.buildRustPackage rec {
"cuid-1.3.2" = "sha256-qBu1k/dJiA6rWBwk4nOOqouIneD9h2TTBT8tvs0TDfA="; "cuid-1.3.2" = "sha256-qBu1k/dJiA6rWBwk4nOOqouIneD9h2TTBT8tvs0TDfA=";
"graphql-parser-0.3.0" = "sha256-0ZAsj2mW6fCLhwTETucjbu4rPNzfbNiHu2wVTBlTNe4="; "graphql-parser-0.3.0" = "sha256-0ZAsj2mW6fCLhwTETucjbu4rPNzfbNiHu2wVTBlTNe4=";
"mysql_async-0.31.3" = "sha256-2wOupQ/LFV9pUifqBLwTvA0tySv+XWbxHiqs7iTzvvg="; "mysql_async-0.31.3" = "sha256-2wOupQ/LFV9pUifqBLwTvA0tySv+XWbxHiqs7iTzvvg=";
"postgres-native-tls-0.5.0" = "sha256-4CftieImsG2mBqpoJFfyq0R2yd2EyQX4oddAwyXMDZc="; "postgres-native-tls-0.5.0" = "sha256-pzMPNZzlvMaQqBu/V3ExPYVnoIaALeUaYJ4oo/hY9lA=";
"mongodb-3.0.0" = "sha256-1WQgY0zSZhFjt1nrLYTUBrpqBxpCCgKRSeGJLtkE6pw="; "mongodb-3.0.0" = "sha256-1WQgY0zSZhFjt1nrLYTUBrpqBxpCCgKRSeGJLtkE6pw=";
}; };
}; };
@ -44,13 +44,6 @@ rustPlatform.buildRustPackage rec {
protobuf protobuf
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ]; ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
# FIXME: fix this upstream and remove this patch with the next version update.
postPatch = ''
file=libs/user-facing-errors/src/schema_engine.rs
echo "#![allow(dead_code)]" | cat - $file > $file.new
mv $file.new $file
'';
preBuild = '' preBuild = ''
export OPENSSL_DIR=${lib.getDev openssl} export OPENSSL_DIR=${lib.getDev openssl}
export OPENSSL_LIB_DIR=${lib.getLib openssl}/lib export OPENSSL_LIB_DIR=${lib.getLib openssl}/lib

View File

@ -6,13 +6,13 @@
buildGoModule rec { buildGoModule rec {
pname = "melange"; pname = "melange";
version = "0.11.3"; version = "0.14.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "chainguard-dev"; owner = "chainguard-dev";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-+G6lSG3iaKWC1SU0cyeU1sU8r9VBUwwtU7D/yjZmu04="; hash = "sha256-fHHIIlxKTF4q9LOeL3jyLS7HQ/IFmx+1fS/7PitrclM=";
# populate values that require us to use git. By doing this in postFetch we # populate values that require us to use git. By doing this in postFetch we
# can delete .git afterwards and maintain better reproducibility of the src. # can delete .git afterwards and maintain better reproducibility of the src.
leaveDotGit = true; leaveDotGit = true;
@ -25,7 +25,7 @@ buildGoModule rec {
''; '';
}; };
vendorHash = "sha256-GNY1ez7qC2aaEm8WAQqGy4vWZEZFQhze15r3QQZBNzA="; vendorHash = "sha256-Okil1H6+O8YjTptI00mQQ1+04OiuO/zf1L8es4CdnNc=";
subPackages = [ "." ]; subPackages = [ "." ];

View File

@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
hash = "sha256-gyYlg6NSnwLDUBqouKx3K0y8A9yTTpi6tuSINibig6U="; hash = "sha256-gyYlg6NSnwLDUBqouKx3K0y8A9yTTpi6tuSINibig6U=";
}; };
separateDebugInfo = true;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ]; nativeBuildInputs = [ perl ];

View File

@ -8,17 +8,17 @@
buildGoModule rec { buildGoModule rec {
pname = "go-ios"; pname = "go-ios";
version = "1.0.143"; version = "1.0.150";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "danielpaulus"; owner = "danielpaulus";
repo = "go-ios"; repo = "go-ios";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-6RiKyhV5y6lOrhfZezSB2m/l17T3bHYaYRhsMf04wT8="; sha256 = "sha256-xa2/qshZ4k+Df5l817BXlotR6L/CX6Lw2+tWDYnr96I=";
}; };
proxyVendor = true; proxyVendor = true;
vendorHash = "sha256-GfVHAOlN2tL21ILQYPw/IaYQZccxitjHGQ09unfHcKg="; vendorHash = "sha256-/aVaTC9lfoXQvhDVQm31HmXBnDYYOv6RH69Nm3I/K7s=";
excludedPackages = [ excludedPackages = [
"restapi" "restapi"

View File

@ -4,14 +4,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "apk-tools"; pname = "apk-tools";
version = "2.14.4"; version = "2.14.5";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.alpinelinux.org"; domain = "gitlab.alpinelinux.org";
owner = "alpine"; owner = "alpine";
repo = "apk-tools"; repo = "apk-tools";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-NaLa975AJrfvxxUkPTGLno/BoMQKBGaMIJjSbs+63NA="; sha256 = "sha256-GtWwLQoN0106uErEDjPrwlz8pmOKdV3OrtfisFhGqoY=";
}; };
nativeBuildInputs = [ pkg-config scdoc ] nativeBuildInputs = [ pkg-config scdoc ]

View File

@ -3,6 +3,7 @@
, pkg-config , pkg-config
, autoreconfHook , autoreconfHook
, pandoc , pandoc
, fetchpatch2
, fetchurl , fetchurl
, cpio , cpio
, zlib , zlib
@ -23,6 +24,8 @@
, sqlite , sqlite
, zstd , zstd
, libcap , libcap
, apple-sdk_13
, darwinMinVersionHook
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -34,13 +37,33 @@ stdenv.mkDerivation rec {
hash = "sha256-N/O0LAlmlB4q0/EP3jY5gkplkdBxl7qP0IacoHeeH1Y="; hash = "sha256-N/O0LAlmlB4q0/EP3jY5gkplkdBxl7qP0IacoHeeH1Y=";
}; };
patches = [
# Resolves `error: expected expression` on clang
# See: https://github.com/rpm-software-management/rpm/issues/2435.
(fetchpatch2 {
url = "https://github.com/rpm-software-management/rpm/commit/b960c0b43a080287a7c13533eeb2d9f288db1414.diff?full_index=1";
hash = "sha256-0f7YOL2xR07xgAEN32oRbOjPsAsVmKFVtTLXUOeFAa8=";
})
# Fix missing includes required to build on Darwin.
# See: https://github.com/rpm-software-management/rpm/pull/2571.
(fetchpatch2 {
url = "https://github.com/rpm-software-management/rpm/commit/f07875392a09228b1a25c1763a50bbbd0f6798c2.diff?full_index=1";
hash = "sha256-DLpzMApRCgI9zqheglFtqL8E1vq9X/aQa0HMnIAQgk8=";
})
(fetchpatch2 {
url = "https://github.com/rpm-software-management/rpm/commit/b2e67642fd8cb64d8cb1cca9e759396c1c10807d.diff?full_index=1";
hash = "sha256-q3fIBfiUJVmw6Vi2/Bo/zX6/cqTM7aFnskKfMVK3DlU=";
})
];
outputs = [ "out" "dev" "man" ]; outputs = [ "out" "dev" "man" ];
separateDebugInfo = true; separateDebugInfo = true;
nativeBuildInputs = [ autoreconfHook pkg-config pandoc ]; nativeBuildInputs = [ autoreconfHook pkg-config pandoc ];
buildInputs = [ cpio zlib zstd bzip2 file libarchive libgcrypt nspr nss db xz python lua sqlite ] buildInputs = [ cpio zlib zstd bzip2 file libarchive libgcrypt nspr nss db xz python lua sqlite ]
++ lib.optional stdenv.cc.isClang llvmPackages.openmp ++ lib.optional stdenv.cc.isClang llvmPackages.openmp
++ lib.optional stdenv.hostPlatform.isLinux libcap; ++ lib.optional stdenv.hostPlatform.isLinux libcap
++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_13 (darwinMinVersionHook "13.0") ];
# rpm/rpmlib.h includes popt.h, and then the pkg-config file mentions these as linkage requirements # rpm/rpmlib.h includes popt.h, and then the pkg-config file mentions these as linkage requirements
propagatedBuildInputs = [ popt nss db bzip2 libarchive libbfd ] propagatedBuildInputs = [ popt nss db bzip2 libarchive libbfd ]
@ -92,9 +115,6 @@ stdenv.mkDerivation rec {
license = with licenses; [ gpl2Plus lgpl21Plus ]; license = with licenses; [ gpl2Plus lgpl21Plus ];
description = "RPM Package Manager"; description = "RPM Package Manager";
maintainers = with maintainers; [ copumpkin ]; maintainers = with maintainers; [ copumpkin ];
platforms = platforms.linux; platforms = platforms.linux ++ platforms.darwin;
# Support for darwin was removed in https://github.com/NixOS/nixpkgs/pull/196350.
# This can be re-enables for apple_sdk.version >= 13.0.
badPlatforms = platforms.darwin;
}; };
} }

View File

@ -1782,7 +1782,7 @@ with pkgs;
hyperpotamus = callPackage ../tools/misc/hyperpotamus { }; hyperpotamus = callPackage ../tools/misc/hyperpotamus { };
inherit (callPackages ../tools/networking/ivpn/default.nix {}) ivpn ivpn-service; inherit (callPackages ../tools/networking/ivpn/default.nix { buildGoModule = buildGo122Module; }) ivpn ivpn-service;
jobber = callPackage ../tools/system/jobber { }; jobber = callPackage ../tools/system/jobber { };
@ -6468,10 +6468,6 @@ with pkgs;
age-plugin-tpm = callPackage ../tools/security/age-plugin-tpm { }; age-plugin-tpm = callPackage ../tools/security/age-plugin-tpm { };
age-plugin-yubikey = darwin.apple_sdk_11_0.callPackage ../tools/security/age-plugin-yubikey {
inherit (darwin.apple_sdk_11_0.frameworks) Foundation PCSC IOKit;
};
artim-dark = callPackage ../data/themes/artim-dark { }; artim-dark = callPackage ../data/themes/artim-dark { };
bbin = callPackage ../development/tools/bbin { }; bbin = callPackage ../development/tools/bbin { };
@ -17458,8 +17454,6 @@ with pkgs;
gnome-desktop-testing = callPackage ../development/tools/gnome-desktop-testing { }; gnome-desktop-testing = callPackage ../development/tools/gnome-desktop-testing { };
gnome-firmware = callPackage ../applications/misc/gnome-firmware { };
gnome-tecla = callPackage ../applications/misc/gnome-tecla { }; gnome-tecla = callPackage ../applications/misc/gnome-tecla { };
gnome-usage = callPackage ../applications/misc/gnome-usage { }; gnome-usage = callPackage ../applications/misc/gnome-usage { };