From 32bb0b6f36249705cf97deee668afcbc3250c336 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 14 Jan 2023 04:20:00 +0000 Subject: [PATCH] libcotp: fix build on darwin --- pkgs/development/libraries/libcotp/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/libcotp/default.nix b/pkgs/development/libraries/libcotp/default.nix index 48fe5adbf74f..0644513e7927 100644 --- a/pkgs/development/libraries/libcotp/default.nix +++ b/pkgs/development/libraries/libcotp/default.nix @@ -11,6 +11,11 @@ stdenv.mkDerivation rec { sha256 = "sha256-99Uw/BMk2bLj+/FZd7MwrRw62XcCroO9yNWdtH5AFpE="; }; + postPatch = lib.optionalString stdenv.cc.isClang '' + substituteInPlace CMakeLists.txt \ + --replace "add_link_options(-Wl," "# add_link_options(-Wl," + ''; + buildInputs = [ libbaseencode libgcrypt ]; nativeBuildInputs = [ cmake pkg-config ]; @@ -19,5 +24,6 @@ stdenv.mkDerivation rec { homepage = "https://github.com/paolostivanin/libcotp"; license = licenses.asl20; maintainers = with maintainers; [ alexbakker ]; + platforms = platforms.all; }; }