about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/openethereum
diff options
context:
space:
mode:
authoryihuang <yi.codeplayer@gmail.com>2020-10-01 07:16:27 +0800
committeryihuang <yi.codeplayer@gmail.com>2020-10-01 10:01:56 +0800
commitce07fef9f4cadd7fcc3adfc4b25ccdad187d1336 (patch)
tree4fb83fe348131bd1d0f7a2b0b21483e0898cfdbe /pkgs/applications/blockchains/openethereum
parent33ed2e9e548a001af545d8d9dabf16b34b3cd3b5 (diff)
openethereum: linux -> unix, remove systemd from buildInputs
Diffstat (limited to 'pkgs/applications/blockchains/openethereum')
-rw-r--r--pkgs/applications/blockchains/openethereum/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/blockchains/openethereum/default.nix b/pkgs/applications/blockchains/openethereum/default.nix
index 7d5acc62050de..8ff65ec92a9d7 100644
--- a/pkgs/applications/blockchains/openethereum/default.nix
+++ b/pkgs/applications/blockchains/openethereum/default.nix
@@ -5,7 +5,9 @@
 , llvmPackages
 , openssl
 , pkg-config
+, stdenv
 , systemd
+, darwin
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -31,7 +33,9 @@ rustPlatform.buildRustPackage rec {
     pkg-config
   ];
 
-  buildInputs = [ openssl systemd ];
+  buildInputs = [ openssl ]
+    ++ stdenv.lib.optionals stdenv.isLinux [ systemd ]
+    ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.Security ];
 
   cargoBuildFlags = [ "--features final" ];
 
@@ -43,6 +47,6 @@ rustPlatform.buildRustPackage rec {
     homepage = "http://parity.io/ethereum";
     license = licenses.gpl3;
     maintainers = with maintainers; [ akru xrelkd ];
-    platforms = platforms.linux;
+    platforms = stdenv.lib.platforms.unix;
   };
 }