mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
prisma-engines_{6,7}: use finalAttrs construct
This commit is contained in:
@@ -10,14 +10,14 @@
|
||||
# Updating this package will force an update for prisma. The
|
||||
# version of prisma-engines and prisma must be the same for them to
|
||||
# function correctly.
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "prisma-engines_6";
|
||||
version = "6.19.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "prisma";
|
||||
repo = "prisma-engines";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-z3GdnrLEMJIGPKXXbz2wrbiGpuNlgYxqg3iYINYTnPI=";
|
||||
};
|
||||
|
||||
@@ -70,7 +70,7 @@ rustPlatform.buildRustPackage rec {
|
||||
aqrln
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
### Troubleshooting
|
||||
# Here's an example application using Prisma with Nix: https://github.com/pimeys/nix-prisma-example
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
# Updating this package will force an update for prisma. The
|
||||
# version of prisma-engines and prisma must be the same for them to
|
||||
# function correctly.
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "prisma-engines_7";
|
||||
version = "7.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "prisma";
|
||||
repo = "prisma-engines";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-1CwpUtNuqxGNjBmmmo/Aet8XrmnCQfDToI7vZaNupDI=";
|
||||
};
|
||||
|
||||
@@ -59,7 +59,7 @@ rustPlatform.buildRustPackage rec {
|
||||
aqrln
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
### Troubleshooting
|
||||
# Here's an example application using Prisma with Nix: https://github.com/pimeys/nix-prisma-example
|
||||
|
||||
Reference in New Issue
Block a user