ansifilter: extend build to include Darwin

All that was required was to use clang++ instead of g++ when compiling for
Darwin.
This commit is contained in:
Sukant Hajra 2020-06-25 21:05:37 -05:00
parent a8efeed583
commit 56f1949092

View file

@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost lua ]; buildInputs = [ boost lua ];
postPatch = ''
substituteInPlace src/makefile --replace "CC=g++" "CC=c++"
'';
makeFlags = [ makeFlags = [
"PREFIX=${placeholder "out"}" "PREFIX=${placeholder "out"}"
"conf_dir=/etc/ansifilter" "conf_dir=/etc/ansifilter"
@ -26,6 +30,6 @@ stdenv.mkDerivation rec {
homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php"; homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = [ maintainers.Adjective-Object ]; maintainers = [ maintainers.Adjective-Object ];
platforms = platforms.linux; platforms = platforms.linux ++ platforms.darwin;
}; };
} }