From 448c1d0e86cc8f77b07d9a389340e3e1ffbdd3f0 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Tue, 29 Mar 2022 09:33:10 -0500 Subject: [PATCH] polkadot: fix darwin build --- pkgs/applications/blockchains/polkadot/default.nix | 5 ++++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/blockchains/polkadot/default.nix b/pkgs/applications/blockchains/polkadot/default.nix index ced8b1f857cc..8199504839a0 100644 --- a/pkgs/applications/blockchains/polkadot/default.nix +++ b/pkgs/applications/blockchains/polkadot/default.nix @@ -5,6 +5,7 @@ , protobuf , rustPlatform , writeShellScriptBin +, Security }: rustPlatform.buildRustPackage rec { pname = "polkadot"; @@ -32,6 +33,8 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-Gc5WbayQUlsl7Fk8NyLPh2Zg2yrLl3WJqKorNZMLi94="; + buildInputs = [ Security ]; + nativeBuildInputs = [ clang ]; preBuild = '' @@ -56,6 +59,6 @@ rustPlatform.buildRustPackage rec { homepage = "https://polkadot.network"; license = licenses.gpl3Only; maintainers = with maintainers; [ akru andresilva asymmetric FlorianFranzen RaghavSood ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7fa2d5eb471a..e60531bd4953 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30838,7 +30838,9 @@ with pkgs; openethereum = callPackage ../applications/blockchains/openethereum { }; - polkadot = callPackage ../applications/blockchains/polkadot { }; + polkadot = callPackage ../applications/blockchains/polkadot { + inherit (darwin.apple_sdk.frameworks) Security; + }; particl-core = callPackage ../applications/blockchains/particl-core { miniupnpc = miniupnpc_2; };