mpage: fix darwin build

This commit is contained in:
Ben Siraphob 2021-03-03 19:03:07 +07:00
parent d6a4596c48
commit db04431fcb

View File

@ -7,8 +7,9 @@ stdenv.mkDerivation rec {
sha256 = "1zn37r5xrvjgjbw2bdkc0r7s6q8b1krmcryzj0yf0dyxbx79rasi";
};
patchPhase = ''
postPatch = ''
sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g"
substituteInPlace Makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
'';
meta = {
@ -24,6 +25,6 @@ stdenv.mkDerivation rec {
license = "liberal"; # a non-copyleft license, see `Copyright' file
homepage = "http://www.mesa.nl/pub/mpage/";
platforms = lib.platforms.linux;
platforms = lib.platforms.all;
};
}