From bd41737ab4b4f26ade987b95679df8955dc37402 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
Date: Wed, 11 May 2022 14:32:02 +0200
Subject: [PATCH] nearcore: mark as linux only for now

macos support is feasible but requires some testing: https://github.com/ZentriaMC/neard-nix/blob/master/neard.nix#L23
---
 pkgs/applications/blockchains/nearcore/default.nix | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkgs/applications/blockchains/nearcore/default.nix b/pkgs/applications/blockchains/nearcore/default.nix
index 99fce14eff9d..09d4546356c2 100644
--- a/pkgs/applications/blockchains/nearcore/default.nix
+++ b/pkgs/applications/blockchains/nearcore/default.nix
@@ -50,6 +50,8 @@ rustPlatform.buildRustPackage rec {
     homepage = "https://github.com/near/nearcore";
     license = licenses.gpl3;
     maintainers = with maintainers; [ mic92 ];
-    platforms = platforms.unix;
+    # only x86_64 is supported in nearcore because of sse4+ support, macOS might
+    # be also possible
+    platforms = [ "x86_64-linux" ];
   };
 }