3
0
Fork 0
forked from mirrors/nixpkgs

prisma-engines: add support for darwin

This commit is contained in:
Julius de Bruijn 2021-10-07 12:24:36 +02:00
parent 710be10957
commit d08986bdaf
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,6 @@
{ fetchFromGitHub
, lib
, Security
, openssl
, pkg-config
, protobuf
@ -26,7 +27,11 @@ in rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-NAXoKz+tZmjmZ/PkDaXEp9D++iu/3Knp0Yy6NJWEoDM=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl protobuf ];
buildInputs = [
openssl
protobuf
] ++ lib.optionals stdenv.isDarwin [ Security ];
preBuild = ''
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";
homepage = "https://www.prisma.io/";
license = licenses.asl20;
platforms = [ "x86_64-linux" "aarch64-linux" ];
platforms = platforms.unix;
maintainers = with maintainers; [ pamplemousse pimeys ];
};
}

View file

@ -311,7 +311,9 @@ with pkgs;
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 {};