summary refs log tree commit diff
path: root/pkgs/applications/graphics/nomacs
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-06-27 01:51:23 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-06-27 03:18:06 -0400
commitc74d21a38cc833d70e47221fa097e27bbd449f00 (patch)
tree7b85f09a67fa291e842279488d76fb1bd5f5663d /pkgs/applications/graphics/nomacs
parent248014f053c38a7b794cd6dd05064813bc651ac5 (diff)
downloadnixpkgs-c74d21a38cc833d70e47221fa097e27bbd449f00.tar
nixpkgs-c74d21a38cc833d70e47221fa097e27bbd449f00.tar.gz
nixpkgs-c74d21a38cc833d70e47221fa097e27bbd449f00.tar.bz2
nixpkgs-c74d21a38cc833d70e47221fa097e27bbd449f00.tar.lz
nixpkgs-c74d21a38cc833d70e47221fa097e27bbd449f00.tar.xz
nixpkgs-c74d21a38cc833d70e47221fa097e27bbd449f00.tar.zst
nixpkgs-c74d21a38cc833d70e47221fa097e27bbd449f00.zip
nomacs: add missing headers
Diffstat (limited to 'pkgs/applications/graphics/nomacs')
-rw-r--r--pkgs/applications/graphics/nomacs/default.nix4
-rw-r--r--pkgs/applications/graphics/nomacs/nomacs-iostream.patch26
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/nomacs/default.nix b/pkgs/applications/graphics/nomacs/default.nix
index 14a28fc55b7..d0838070262 100644
--- a/pkgs/applications/graphics/nomacs/default.nix
+++ b/pkgs/applications/graphics/nomacs/default.nix
@@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
     sha256 = "12582i5v85da7vwjxj8grj99hxg34ij5cn3b1578wspdfw1xfy1i";
   };
 
+  patches = [
+    ./nomacs-iostream.patch
+  ];
+
   enableParallelBuilding = true;
 
   setSourceRoot = ''
diff --git a/pkgs/applications/graphics/nomacs/nomacs-iostream.patch b/pkgs/applications/graphics/nomacs/nomacs-iostream.patch
new file mode 100644
index 00000000000..53224e0260e
--- /dev/null
+++ b/pkgs/applications/graphics/nomacs/nomacs-iostream.patch
@@ -0,0 +1,26 @@
+diff --git a/src/DkCore/DkMetaData.cpp b/src/DkCore/DkMetaData.cpp
+index d195757e..affec7be 100644
+--- a/src/DkCore/DkMetaData.cpp
++++ b/src/DkCore/DkMetaData.cpp
+@@ -42,6 +42,8 @@
+ #include <QApplication>
+ #pragma warning(pop)		// no warnings from includes - end
+
++#include <iostream>
++
+ namespace nmc {
+
+ // DkMetaDataT --------------------------------------------------------------------
+diff --git a/src/DkGui/DkNoMacs.cpp b/src/DkGui/DkNoMacs.cpp
+index 6a412f70..bbfba233 100644
+--- a/src/DkGui/DkNoMacs.cpp
++++ b/src/DkGui/DkNoMacs.cpp
+@@ -96,6 +96,8 @@
+ #include <QWinTaskbarButton>
+ #endif
+
++#include <iostream>
++
+ namespace nmc {
+
+ DkNomacsOSXEventFilter::DkNomacsOSXEventFilter(QObject *parent) : QObject(parent) {