{prisma,prisma-engines}: 5.16.1 -> 5.18.0 (#337521)
This commit is contained in:
commit
4dd3c85ad5
@ -246,6 +246,8 @@
|
|||||||
and `nodePackages.vscode-json-languageserver-bin` were dropped due to an unmaintained upstream.
|
and `nodePackages.vscode-json-languageserver-bin` were dropped due to an unmaintained upstream.
|
||||||
The `vscode-langservers-extracted` package is a maintained drop-in replacement.
|
The `vscode-langservers-extracted` package is a maintained drop-in replacement.
|
||||||
|
|
||||||
|
- `nodePackages.prisma` has been replaced by `prisma`.
|
||||||
|
|
||||||
- `fetchNextcloudApp` has been rewritten to use `fetchurl` rather than
|
- `fetchNextcloudApp` has been rewritten to use `fetchurl` rather than
|
||||||
`fetchzip`. This invalidates all existing hashes but you can restore the old
|
`fetchzip`. This invalidates all existing hashes but you can restore the old
|
||||||
behavior by passing it `unpack = true`.
|
behavior by passing it `unpack = true`.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildNpmPackage
|
, buildNpmPackage
|
||||||
, nodePackages
|
, prisma
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -18,12 +18,14 @@ buildNpmPackage {
|
|||||||
hash = "sha256-uKOJVZ0GRHo/CYvd/Ix/tq1WDhutRji1tSGdcITsNlo=";
|
hash = "sha256-uKOJVZ0GRHo/CYvd/Ix/tq1WDhutRji1tSGdcITsNlo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ prisma ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
# somehow for linux, npm is not finding the prisma package with the
|
# somehow for linux, npm is not finding the prisma package with the
|
||||||
# packages installed with the lockfile.
|
# packages installed with the lockfile.
|
||||||
# This generates a prisma version incompatibility warning and is a kludge
|
# This generates a prisma version incompatibility warning and is a kludge
|
||||||
# until the upstream package-lock is modified.
|
# until the upstream package-lock is modified.
|
||||||
${nodePackages.prisma}/bin/prisma generate
|
prisma generate
|
||||||
'';
|
'';
|
||||||
|
|
||||||
npmDepsHash = "sha256-+JbvFMi8xoyxkuL9k96K1Vq0neciCGkkyZUPd15ES2E=";
|
npmDepsHash = "sha256-+JbvFMi8xoyxkuL9k96K1Vq0neciCGkkyZUPd15ES2E=";
|
||||||
|
101
pkgs/by-name/pr/prisma/package.nix
Normal file
101
pkgs/by-name/pr/prisma/package.nix
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
stdenv,
|
||||||
|
nodejs,
|
||||||
|
pnpm_8,
|
||||||
|
prisma-engines,
|
||||||
|
jq,
|
||||||
|
makeWrapper,
|
||||||
|
moreutils,
|
||||||
|
callPackage,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "prisma";
|
||||||
|
version = "5.18.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "prisma";
|
||||||
|
repo = "prisma";
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
hash = "sha256-BLD2nKryigXr03BCgGwb3PnCcBLMyDfSFb9Snj0VPKI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
nodejs
|
||||||
|
pnpm_8.configHook
|
||||||
|
jq
|
||||||
|
makeWrapper
|
||||||
|
moreutils
|
||||||
|
];
|
||||||
|
|
||||||
|
pnpmDeps = pnpm_8.fetchDeps {
|
||||||
|
inherit (finalAttrs) pname version src;
|
||||||
|
hash = "sha256-lgdJk7HCfX3cAvdEI8xG/IVBiLWezdUN0q+e/0LtVUQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
runHook prePatch
|
||||||
|
|
||||||
|
for package in packages/*; do
|
||||||
|
jq --arg version $version '.version = $version' $package/package.json | sponge $package/package.json
|
||||||
|
done
|
||||||
|
|
||||||
|
runHook postPatch
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
pnpm build
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
# FIXME: Use pnpm deploy: https://github.com/pnpm/pnpm/issues/5315
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/lib/prisma
|
||||||
|
|
||||||
|
# Fetch CLI workspace dependencies
|
||||||
|
deps_json=$(pnpm list --filter ./packages/cli --prod --depth Infinity --json)
|
||||||
|
deps=$(jq -r '[.. | strings | select(startswith("link:../")) | sub("^link:../"; "")] | unique[]' <<< "$deps_json")
|
||||||
|
|
||||||
|
# Remove unnecessary external dependencies
|
||||||
|
rm -rf node_modules
|
||||||
|
pnpm install --offline --ignore-scripts --frozen-lockfile --prod --filter ./packages/cli
|
||||||
|
cp -r node_modules $out/lib/prisma
|
||||||
|
|
||||||
|
# Only install cli and its workspace dependencies
|
||||||
|
for package in cli $deps; do
|
||||||
|
filename=$(npm pack --json ./packages/$package | jq -r '.[].filename')
|
||||||
|
mkdir -p $out/lib/prisma/packages/$package
|
||||||
|
cp -r packages/$package/node_modules $out/lib/prisma/packages/$package
|
||||||
|
tar xf $filename --strip-components=1 -C $out/lib/prisma/packages/$package
|
||||||
|
done
|
||||||
|
|
||||||
|
makeWrapper "${lib.getExe nodejs}" "$out/bin/prisma" \
|
||||||
|
--add-flags "$out/lib/prisma/packages/cli/build/index.js" \
|
||||||
|
--set PRISMA_SCHEMA_ENGINE_BINARY ${prisma-engines}/bin/schema-engine \
|
||||||
|
--set PRISMA_QUERY_ENGINE_BINARY ${prisma-engines}/bin/query-engine \
|
||||||
|
--set PRISMA_QUERY_ENGINE_LIBRARY ${lib.getLib prisma-engines}/lib/libquery_engine.node
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontStrip = true;
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
cli = callPackage ./test-cli.nix { };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Next-generation ORM for Node.js and TypeScript";
|
||||||
|
homepage = "https://www.prisma.io/";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ aqrln ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
})
|
@ -1,21 +1,29 @@
|
|||||||
{ lib, pkgs, runCommand, prisma }:
|
{
|
||||||
|
lib,
|
||||||
|
runCommand,
|
||||||
|
prisma,
|
||||||
|
prisma-engines,
|
||||||
|
sqlite-interactive,
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (prisma) packageName;
|
|
||||||
prismaMajorVersion = lib.versions.majorMinor prisma.version;
|
prismaMajorVersion = lib.versions.majorMinor prisma.version;
|
||||||
enginesMajorVersion = lib.versions.majorMinor pkgs.prisma-engines.version;
|
enginesMajorVersion = lib.versions.majorMinor prisma-engines.version;
|
||||||
in
|
in
|
||||||
|
runCommand "prisma-cli-tests"
|
||||||
runCommand "${packageName}-tests" {
|
{
|
||||||
nativeBuildInputs = with pkgs; [ prisma sqlite-interactive ];
|
nativeBuildInputs = [
|
||||||
meta.timeout = 60;
|
prisma
|
||||||
}
|
sqlite-interactive
|
||||||
|
];
|
||||||
|
meta.timeout = 60;
|
||||||
|
}
|
||||||
''
|
''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cd $out
|
cd $out
|
||||||
|
|
||||||
if [ "${prismaMajorVersion}" != "${enginesMajorVersion}" ]; then
|
if [ "${prismaMajorVersion}" != "${enginesMajorVersion}" ]; then
|
||||||
echo "nodePackages.prisma in version ${prismaMajorVersion} and prisma-engines in ${enginesMajorVersion}. Major versions must match."
|
echo "prisma in version ${prismaMajorVersion} and prisma-engines in ${enginesMajorVersion}. Major versions must match."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -168,7 +168,6 @@
|
|||||||
, "prebuild-install"
|
, "prebuild-install"
|
||||||
, "prettier"
|
, "prettier"
|
||||||
, "prettier-plugin-toml"
|
, "prettier-plugin-toml"
|
||||||
, "prisma"
|
|
||||||
, "@prisma/language-server"
|
, "@prisma/language-server"
|
||||||
, "pscid"
|
, "pscid"
|
||||||
, "pulp"
|
, "pulp"
|
||||||
|
70
pkgs/development/node-packages/node-packages.nix
generated
70
pkgs/development/node-packages/node-packages.nix
generated
@ -8707,51 +8707,6 @@ let
|
|||||||
sha512 = "j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==";
|
sha512 = "j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"@prisma/debug-5.17.0" = {
|
|
||||||
name = "_at_prisma_slash_debug";
|
|
||||||
packageName = "@prisma/debug";
|
|
||||||
version = "5.17.0";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/@prisma/debug/-/debug-5.17.0.tgz";
|
|
||||||
sha512 = "l7+AteR3P8FXiYyo496zkuoiJ5r9jLQEdUuxIxNCN1ud8rdbH3GTxm+f+dCyaSv9l9WY+29L9czaVRXz9mULfg==";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"@prisma/engines-5.17.0" = {
|
|
||||||
name = "_at_prisma_slash_engines";
|
|
||||||
packageName = "@prisma/engines";
|
|
||||||
version = "5.17.0";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/@prisma/engines/-/engines-5.17.0.tgz";
|
|
||||||
sha512 = "+r+Nf+JP210Jur+/X8SIPLtz+uW9YA4QO5IXA+KcSOBe/shT47bCcRMTYCbOESw3FFYFTwe7vU6KTWHKPiwvtg==";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"@prisma/engines-version-5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053" = {
|
|
||||||
name = "_at_prisma_slash_engines-version";
|
|
||||||
packageName = "@prisma/engines-version";
|
|
||||||
version = "5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053.tgz";
|
|
||||||
sha512 = "tUuxZZysZDcrk5oaNOdrBnnkoTtmNQPkzINFDjz7eG6vcs9AVDmA/F6K5Plsb2aQc/l5M2EnFqn3htng9FA4hg==";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"@prisma/fetch-engine-5.17.0" = {
|
|
||||||
name = "_at_prisma_slash_fetch-engine";
|
|
||||||
packageName = "@prisma/fetch-engine";
|
|
||||||
version = "5.17.0";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-5.17.0.tgz";
|
|
||||||
sha512 = "ESxiOaHuC488ilLPnrv/tM2KrPhQB5TRris/IeIV4ZvUuKeaicCl4Xj/JCQeG9IlxqOgf1cCg5h5vAzlewN91Q==";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"@prisma/get-platform-5.17.0" = {
|
|
||||||
name = "_at_prisma_slash_get-platform";
|
|
||||||
packageName = "@prisma/get-platform";
|
|
||||||
version = "5.17.0";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-5.17.0.tgz";
|
|
||||||
sha512 = "UlDgbRozCP1rfJ5Tlkf3Cnftb6srGrEQ4Nm3og+1Se2gWmCZ0hmPIi+tQikGDUVLlvOWx3Gyi9LzgRP+HTXV9w==";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"@prisma/prisma-schema-wasm-5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053" = {
|
"@prisma/prisma-schema-wasm-5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053" = {
|
||||||
name = "_at_prisma_slash_prisma-schema-wasm";
|
name = "_at_prisma_slash_prisma-schema-wasm";
|
||||||
packageName = "@prisma/prisma-schema-wasm";
|
packageName = "@prisma/prisma-schema-wasm";
|
||||||
@ -81407,31 +81362,6 @@ in
|
|||||||
bypassCache = true;
|
bypassCache = true;
|
||||||
reconstructLock = true;
|
reconstructLock = true;
|
||||||
};
|
};
|
||||||
prisma = nodeEnv.buildNodePackage {
|
|
||||||
name = "prisma";
|
|
||||||
packageName = "prisma";
|
|
||||||
version = "5.17.0";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/prisma/-/prisma-5.17.0.tgz";
|
|
||||||
sha512 = "m4UWkN5lBE6yevqeOxEvmepnL5cNPEjzMw2IqDB59AcEV6w7D8vGljDLd1gPFH+W6gUxw9x7/RmN5dCS/WTPxA==";
|
|
||||||
};
|
|
||||||
dependencies = [
|
|
||||||
sources."@prisma/debug-5.17.0"
|
|
||||||
sources."@prisma/engines-5.17.0"
|
|
||||||
sources."@prisma/engines-version-5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053"
|
|
||||||
sources."@prisma/fetch-engine-5.17.0"
|
|
||||||
sources."@prisma/get-platform-5.17.0"
|
|
||||||
];
|
|
||||||
buildInputs = globalBuildInputs;
|
|
||||||
meta = {
|
|
||||||
description = "Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.";
|
|
||||||
homepage = "https://www.prisma.io";
|
|
||||||
license = "Apache-2.0";
|
|
||||||
};
|
|
||||||
production = true;
|
|
||||||
bypassCache = true;
|
|
||||||
reconstructLock = true;
|
|
||||||
};
|
|
||||||
"@prisma/language-server" = nodeEnv.buildNodePackage {
|
"@prisma/language-server" = nodeEnv.buildNodePackage {
|
||||||
name = "_at_prisma_slash_language-server";
|
name = "_at_prisma_slash_language-server";
|
||||||
packageName = "@prisma/language-server";
|
packageName = "@prisma/language-server";
|
||||||
|
@ -268,33 +268,6 @@ final: prev: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
# To update prisma, please first update prisma-engines to the latest
|
|
||||||
# version. Then change the correct hash to this package. The PR should hold
|
|
||||||
# two commits: one for the engines and the other one for the node package.
|
|
||||||
prisma = prev.prisma.override rec {
|
|
||||||
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
|
||||||
|
|
||||||
inherit (pkgs.prisma-engines) version;
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/prisma/-/prisma-${version}.tgz";
|
|
||||||
hash = "sha256-TlwKCuDQRFM6+Hhx9eFCfXbtLZq6RwBTIFCWzE4D8N8=";
|
|
||||||
};
|
|
||||||
postInstall = with pkgs; ''
|
|
||||||
wrapProgram "$out/bin/prisma" \
|
|
||||||
--set PRISMA_SCHEMA_ENGINE_BINARY ${prisma-engines}/bin/schema-engine \
|
|
||||||
--set PRISMA_QUERY_ENGINE_BINARY ${prisma-engines}/bin/query-engine \
|
|
||||||
--set PRISMA_QUERY_ENGINE_LIBRARY ${lib.getLib prisma-engines}/lib/libquery_engine.node \
|
|
||||||
--set PRISMA_FMT_BINARY ${prisma-engines}/bin/prisma-fmt
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.tests = {
|
|
||||||
simple-execution = pkgs.callPackage ./package-tests/prisma.nix {
|
|
||||||
inherit (final) prisma;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pulp = prev.pulp.override {
|
pulp = prev.pulp.override {
|
||||||
# tries to install purescript
|
# tries to install purescript
|
||||||
npmFlags = builtins.toString [ "--ignore-scripts" ];
|
npmFlags = builtins.toString [ "--ignore-scripts" ];
|
||||||
|
@ -416,7 +416,7 @@ dependencies = [
|
|||||||
"serde",
|
"serde",
|
||||||
"serde_bytes",
|
"serde_bytes",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"time 0.3.25",
|
"time",
|
||||||
"uuid",
|
"uuid",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -520,30 +520,23 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cfg_aliases"
|
name = "cfg_aliases"
|
||||||
version = "0.1.1"
|
version = "0.2.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
|
checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "cfg_aliases"
|
|
||||||
version = "0.2.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "77e53693616d3075149f4ead59bdeecd204ac6b8192d8969757601b74bddf00f"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chrono"
|
name = "chrono"
|
||||||
version = "0.4.26"
|
version = "0.4.38"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5"
|
checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"android-tzdata",
|
"android-tzdata",
|
||||||
"iana-time-zone",
|
"iana-time-zone",
|
||||||
"js-sys",
|
"js-sys",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
"serde",
|
"serde",
|
||||||
"time 0.1.43",
|
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
"winapi",
|
"windows-targets 0.52.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -677,6 +670,16 @@ dependencies = [
|
|||||||
"unreachable",
|
"unreachable",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "concat-idents"
|
||||||
|
version = "1.1.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f76990911f2267d837d9d0ad060aa63aaad170af40904b29461734c339030d4d"
|
||||||
|
dependencies = [
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.48",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "connection-string"
|
name = "connection-string"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
@ -1028,9 +1031,12 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "deranged"
|
name = "deranged"
|
||||||
version = "0.3.7"
|
version = "0.3.11"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7684a49fb1af197853ef7b2ee694bc1f5b4179556f1e5710e1760c5db6f5e929"
|
checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
|
||||||
|
dependencies = [
|
||||||
|
"powerfmt",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "derivative"
|
name = "derivative"
|
||||||
@ -1935,6 +1941,9 @@ dependencies = [
|
|||||||
"console",
|
"console",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"linked-hash-map",
|
"linked-hash-map",
|
||||||
|
"pest",
|
||||||
|
"pest_derive",
|
||||||
|
"serde",
|
||||||
"similar",
|
"similar",
|
||||||
"yaml-rust",
|
"yaml-rust",
|
||||||
]
|
]
|
||||||
@ -2234,9 +2243,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lsp-types"
|
name = "lsp-types"
|
||||||
version = "0.91.1"
|
version = "0.95.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2368312c59425dd133cb9a327afee65be0a633a8ce471d248e2202a48f8f68ae"
|
checksum = "8e34d33a8e9b006cd3fc4fe69a921affa097bae4bb65f76271f4644f9a334365"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.3.2",
|
"bitflags 1.3.2",
|
||||||
"serde",
|
"serde",
|
||||||
@ -2645,7 +2654,7 @@ dependencies = [
|
|||||||
"smallvec",
|
"smallvec",
|
||||||
"subprocess",
|
"subprocess",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
"time 0.3.25",
|
"time",
|
||||||
"uuid",
|
"uuid",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -2817,6 +2826,12 @@ dependencies = [
|
|||||||
"num-traits",
|
"num-traits",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "num-conv"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "num-integer"
|
name = "num-integer"
|
||||||
version = "0.1.45"
|
version = "0.1.45"
|
||||||
@ -3331,6 +3346,12 @@ dependencies = [
|
|||||||
"uuid",
|
"uuid",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "powerfmt"
|
||||||
|
version = "0.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ppv-lite86"
|
name = "ppv-lite86"
|
||||||
version = "0.2.17"
|
version = "0.2.17"
|
||||||
@ -3593,11 +3614,13 @@ dependencies = [
|
|||||||
"bit-vec",
|
"bit-vec",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
"bytes",
|
"bytes",
|
||||||
"cfg_aliases 0.1.1",
|
"cfg_aliases",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
"concat-idents",
|
||||||
"connection-string",
|
"connection-string",
|
||||||
"crosstarget-utils",
|
"crosstarget-utils",
|
||||||
"either",
|
"either",
|
||||||
|
"expect-test",
|
||||||
"futures",
|
"futures",
|
||||||
"getrandom 0.2.11",
|
"getrandom 0.2.11",
|
||||||
"hex",
|
"hex",
|
||||||
@ -4258,7 +4281,7 @@ name = "request-handlers"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bigdecimal",
|
"bigdecimal",
|
||||||
"cfg_aliases 0.2.0",
|
"cfg_aliases",
|
||||||
"codspeed-criterion-compat",
|
"codspeed-criterion-compat",
|
||||||
"connection-string",
|
"connection-string",
|
||||||
"dmmf",
|
"dmmf",
|
||||||
@ -4724,9 +4747,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde"
|
name = "serde"
|
||||||
version = "1.0.183"
|
version = "1.0.209"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c"
|
checksum = "99fce0ffe7310761ca6bf9faf5115afbc19688edd00171d81b1bb1b116c63e09"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde_derive",
|
"serde_derive",
|
||||||
]
|
]
|
||||||
@ -4753,9 +4776,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_derive"
|
name = "serde_derive"
|
||||||
version = "1.0.183"
|
version = "1.0.209"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816"
|
checksum = "a5831b979fd7b5439637af1752d535ff49f4860c0f341d1baeb6faf0f4242170"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@ -5082,6 +5105,7 @@ dependencies = [
|
|||||||
"bigdecimal",
|
"bigdecimal",
|
||||||
"chrono",
|
"chrono",
|
||||||
"cuid",
|
"cuid",
|
||||||
|
"expect-test",
|
||||||
"futures",
|
"futures",
|
||||||
"itertools 0.12.0",
|
"itertools 0.12.0",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
@ -5424,9 +5448,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tiberius"
|
name = "tiberius"
|
||||||
version = "0.11.7"
|
version = "0.11.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "66303a42b7c5daffb95c10cd8f3007a9c29b3e90128cf42b3738f58102aa2516"
|
checksum = "091052ba8f20c1e14f85913a5242a663a09d17ff4c0137b9b1f0735cb3c5dabc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-native-tls",
|
"async-native-tls",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
@ -5456,22 +5480,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "time"
|
name = "time"
|
||||||
version = "0.1.43"
|
version = "0.3.36"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
|
checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
|
||||||
dependencies = [
|
|
||||||
"libc",
|
|
||||||
"winapi",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "time"
|
|
||||||
version = "0.3.25"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b0fdd63d58b18d663fbdf70e049f00a22c8e42be082203be7f26589213cd75ea"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"deranged",
|
"deranged",
|
||||||
"itoa",
|
"itoa",
|
||||||
|
"num-conv",
|
||||||
|
"powerfmt",
|
||||||
"serde",
|
"serde",
|
||||||
"time-core",
|
"time-core",
|
||||||
"time-macros",
|
"time-macros",
|
||||||
@ -5479,16 +5495,17 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "time-core"
|
name = "time-core"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb"
|
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "time-macros"
|
name = "time-macros"
|
||||||
version = "0.2.11"
|
version = "0.2.18"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "eb71511c991639bb078fd5bf97757e03914361c48100d52878b8e52b46fb92cd"
|
checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"num-conv",
|
||||||
"time-core",
|
"time-core",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -5842,7 +5859,7 @@ dependencies = [
|
|||||||
"sharded-slab",
|
"sharded-slab",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"thread_local",
|
"thread_local",
|
||||||
"time 0.3.25",
|
"time",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-core",
|
"tracing-core",
|
||||||
"tracing-log",
|
"tracing-log",
|
||||||
@ -6080,12 +6097,13 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "uuid"
|
name = "uuid"
|
||||||
version = "1.4.1"
|
version = "1.10.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d"
|
checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"getrandom 0.2.11",
|
"getrandom 0.2.11",
|
||||||
"serde",
|
"serde",
|
||||||
|
"wasm-bindgen",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -9,18 +9,18 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Updating this package will force an update for nodePackages.prisma. The
|
# Updating this package will force an update for prisma. The
|
||||||
# version of prisma-engines and nodePackages.prisma must be the same for them to
|
# version of prisma-engines and prisma must be the same for them to
|
||||||
# function correctly.
|
# function correctly.
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "prisma-engines";
|
pname = "prisma-engines";
|
||||||
version = "5.16.1";
|
version = "5.18.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "prisma";
|
owner = "prisma";
|
||||||
repo = "prisma-engines";
|
repo = "prisma-engines";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-uJJX5lI0YFXygWLeaOuYxjgyswJcjSujPcqHn1aKn8M=";
|
hash = "sha256-ucAOz00dBgX2Bb63ueaBbyu1XtVQD+96EncUyo7STwA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Use system openssl.
|
# Use system openssl.
|
||||||
@ -44,6 +44,12 @@ rustPlatform.buildRustPackage rec {
|
|||||||
protobuf
|
protobuf
|
||||||
] ++ lib.optionals stdenv.isDarwin [ Security ];
|
] ++ lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
|
# FIXME: Workaround Rust 1.80 support by updating time to 0.3.36
|
||||||
|
# https://github.com/prisma/prisma-engines/issues/4989
|
||||||
|
postPatch = ''
|
||||||
|
ln -sfn ${./Cargo.lock} Cargo.lock
|
||||||
|
'';
|
||||||
|
|
||||||
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
|
||||||
@ -83,7 +89,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
# Here's an example application using Prisma with Nix: https://github.com/pimeys/nix-prisma-example
|
# Here's an example application using Prisma with Nix: https://github.com/pimeys/nix-prisma-example
|
||||||
# At example's `flake.nix` shellHook, notice the requirement of defining environment variables for prisma, it's values will show on `prisma --version`.
|
# At example's `flake.nix` shellHook, notice the requirement of defining environment variables for prisma, it's values will show on `prisma --version`.
|
||||||
# Read the example's README: https://github.com/pimeys/nix-prisma-example/blob/main/README.md
|
# Read the example's README: https://github.com/pimeys/nix-prisma-example/blob/main/README.md
|
||||||
# Prisma requires 2 packages, `prisma-engines` and `nodePackages.prisma`, to be at *exact* same versions.
|
# Prisma requires 2 packages, `prisma-engines` and `prisma`, to be at *exact* same versions.
|
||||||
# Certify at `package.json` that dependencies "@prisma/client" and "prisma" are equal, meaning no caret (`^`) in version.
|
# Certify at `package.json` that dependencies "@prisma/client" and "prisma" are equal, meaning no caret (`^`) in version.
|
||||||
# Configure NPM to use exact version: `npm config set save-exact=true`
|
# Configure NPM to use exact version: `npm config set save-exact=true`
|
||||||
# Delete `package-lock.json`, delete `node_modules` directory and run `npm install`.
|
# Delete `package-lock.json`, delete `node_modules` directory and run `npm install`.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
buildNpmPackage,
|
buildNpmPackage,
|
||||||
vips,
|
vips,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
nodePackages,
|
prisma,
|
||||||
src,
|
src,
|
||||||
version,
|
version,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
@ -28,7 +28,7 @@ buildNpmPackage {
|
|||||||
buildInputs = [ vips ];
|
buildInputs = [ vips ];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
nodePackages.prisma
|
prisma
|
||||||
];
|
];
|
||||||
|
|
||||||
npmDepsHash = "sha256-btjvX+2krSc0/bJqeLcVTqHBVWqiTFipp3MidO9wApY=";
|
npmDepsHash = "sha256-btjvX+2krSc0/bJqeLcVTqHBVWqiTFipp3MidO9wApY=";
|
||||||
|
Loading…
Reference in New Issue
Block a user