libcotp: fix build on darwin

This commit is contained in:
Mario Rodas
2023-01-14 04:20:00 +00:00
parent 16f27456c4
commit 32bb0b6f36
@@ -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;
};
}