mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-04 03:27:38 +03:00
Merge pull request #140855 from pimeys/prisma-platforms
This commit is contained in:
commit
76e0a0038c
@ -1,5 +1,6 @@
|
|||||||
{ fetchFromGitHub
|
{ fetchFromGitHub
|
||||||
, lib
|
, lib
|
||||||
|
, Security
|
||||||
, openssl
|
, openssl
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, protobuf
|
, protobuf
|
||||||
@ -26,7 +27,11 @@ in rustPlatform.buildRustPackage rec {
|
|||||||
cargoSha256 = "sha256-NAXoKz+tZmjmZ/PkDaXEp9D++iu/3Knp0Yy6NJWEoDM=";
|
cargoSha256 = "sha256-NAXoKz+tZmjmZ/PkDaXEp9D++iu/3Knp0Yy6NJWEoDM=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ openssl protobuf ];
|
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
protobuf
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export OPENSSL_DIR=${lib.getDev openssl}
|
export OPENSSL_DIR=${lib.getDev openssl}
|
||||||
@ -52,7 +57,7 @@ in rustPlatform.buildRustPackage rec {
|
|||||||
description = "A collection of engines that power the core stack for Prisma";
|
description = "A collection of engines that power the core stack for Prisma";
|
||||||
homepage = "https://www.prisma.io/";
|
homepage = "https://www.prisma.io/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ pamplemousse pimeys ];
|
maintainers = with maintainers; [ pamplemousse pimeys ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -311,7 +311,9 @@ with pkgs;
|
|||||||
|
|
||||||
mix2nix = callPackage ../development/tools/mix2nix/default.nix { };
|
mix2nix = callPackage ../development/tools/mix2nix/default.nix { };
|
||||||
|
|
||||||
prisma-engines = callPackage ../development/tools/database/prisma-engines { };
|
prisma-engines = callPackage ../development/tools/database/prisma-engines {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
proto-contrib = callPackage ../development/tools/proto-contrib {};
|
proto-contrib = callPackage ../development/tools/proto-contrib {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user