Merge pull request #189402 from viraptor/libixp-darwin

libixp: fix darwin build
This commit is contained in:
Stanisław Pitucha 2022-09-11 11:18:48 +10:00 committed by GitHub
commit f81206f930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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