summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2020-07-01 21:21:11 +0200
committerGitHub <noreply@github.com>2020-07-01 21:21:11 +0200
commit730f86b722e2dbda4f4d33eed4c7ad37263bece1 (patch)
treedaec913b0a6bec4f9ae21f4da068e3bac79d6f6c /pkgs/tools/text
parent3ddf576767cdda9dca9eade2c0ebac6ad2995dd6 (diff)
parent56f19490924ac25df63f486759d2e534a1955d39 (diff)
downloadnixpkgs-730f86b722e2dbda4f4d33eed4c7ad37263bece1.tar
nixpkgs-730f86b722e2dbda4f4d33eed4c7ad37263bece1.tar.gz
nixpkgs-730f86b722e2dbda4f4d33eed4c7ad37263bece1.tar.bz2
nixpkgs-730f86b722e2dbda4f4d33eed4c7ad37263bece1.tar.lz
nixpkgs-730f86b722e2dbda4f4d33eed4c7ad37263bece1.tar.xz
nixpkgs-730f86b722e2dbda4f4d33eed4c7ad37263bece1.tar.zst
nixpkgs-730f86b722e2dbda4f4d33eed4c7ad37263bece1.zip
Merge pull request #91532 from shajra/fix/ansifilter
ansifilter: extend build to include Darwin
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/ansifilter/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/text/ansifilter/default.nix b/pkgs/tools/text/ansifilter/default.nix
index 8ebb5cfd059..00c8c075ed6 100644
--- a/pkgs/tools/text/ansifilter/default.nix
+++ b/pkgs/tools/text/ansifilter/default.nix
@@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ boost lua ];
 
+  postPatch = ''
+    substituteInPlace src/makefile --replace "CC=g++" "CC=c++"
+  '';
+
   makeFlags = [
     "PREFIX=${placeholder "out"}"
     "conf_dir=/etc/ansifilter"
@@ -26,6 +30,6 @@ stdenv.mkDerivation rec {
     homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php";
     license = licenses.gpl3;
     maintainers = [ maintainers.Adjective-Object ];
-    platforms = platforms.linux;
+    platforms = platforms.linux ++ platforms.darwin;
   };
 }