From 6bb74bef5b4656767fbff930047710f709f559ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Fri, 2 Sep 2022 14:05:53 +1000 Subject: [PATCH] libixp: fix darwin build --- pkgs/development/libraries/libixp/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libixp/default.nix b/pkgs/development/libraries/libixp/default.nix index cc6c468bede5..c4f06b3ea77d 100644 --- a/pkgs/development/libraries/libixp/default.nix +++ b/pkgs/development/libraries/libixp/default.nix @@ -11,6 +11,11 @@ stdenv.mkDerivation rec { hash = "sha256-S25DmXJ7fN0gXLV0IzUdz8hXPTYEHmaSG7Mnli6GQVc="; }; + postPatch = lib.optionalString stdenv.cc.isClang '' + substituteInPlace mk/ixp.mk \ + --replace "©" "C " + ''; + postConfigure = '' sed -i -e "s|^PREFIX.*=.*$|PREFIX = $out|" config.mk ''; @@ -19,7 +24,6 @@ stdenv.mkDerivation rec { buildInputs = [ txt2tags ]; meta = { - broken = stdenv.isDarwin; homepage = "https://github.com/0intro/libixp"; description = "Portable, simple C-language 9P client and server libary"; maintainers = with lib.maintainers; [ kovirobi ];