libixp: fix darwin build

This commit is contained in:
Stanisław Pitucha 2022-09-02 14:05:53 +10:00
parent cc9c837aa2
commit 6bb74bef5b

View file

@ -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 ];