diff options
author | Julius de Bruijn <julius+github@nauk.io> | 2021-10-07 12:24:36 +0200 |
---|---|---|
committer | Julius de Bruijn <julius+github@nauk.io> | 2021-10-07 23:10:58 +0200 |
commit | d08986bdaf448e87eb2ce3af6ae9e71a2a777c28 (patch) | |
tree | 9cc90ee16197e92e6fff82ad38ce4fd6e98c9adb /pkgs/development/tools | |
parent | 710be10957913238d3f57b598387efba68aa41b8 (diff) |
prisma-engines: add support for darwin
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/database/prisma-engines/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/tools/database/prisma-engines/default.nix b/pkgs/development/tools/database/prisma-engines/default.nix index c8fe44c5d04bb..5417f2b83a5d0 100644 --- a/pkgs/development/tools/database/prisma-engines/default.nix +++ b/pkgs/development/tools/database/prisma-engines/default.nix @@ -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 ]; }; } |