summary refs log tree commit diff
path: root/pkgs/tools/text/justify
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2023-02-05 14:56:47 +0100
committerVladimír Čunát <v@cunat.cz>2023-02-05 15:29:43 +0100
commit555f300879332a5989c1130b8e78bf8bdbac20ea (patch)
treec945d3def2ca90d81dd12eff8c024e92a2248898 /pkgs/tools/text/justify
parent39c285eb4f1f6706bb4d07bd7cb3afc798412f1e (diff)
downloadnixpkgs-555f300879332a5989c1130b8e78bf8bdbac20ea.tar
nixpkgs-555f300879332a5989c1130b8e78bf8bdbac20ea.tar.gz
nixpkgs-555f300879332a5989c1130b8e78bf8bdbac20ea.tar.bz2
nixpkgs-555f300879332a5989c1130b8e78bf8bdbac20ea.tar.lz
nixpkgs-555f300879332a5989c1130b8e78bf8bdbac20ea.tar.xz
nixpkgs-555f300879332a5989c1130b8e78bf8bdbac20ea.tar.zst
nixpkgs-555f300879332a5989c1130b8e78bf8bdbac20ea.zip
treewide: another round of gcc12 fixups
Diffstat (limited to 'pkgs/tools/text/justify')
-rw-r--r--pkgs/tools/text/justify/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/text/justify/default.nix b/pkgs/tools/text/justify/default.nix
index 1e18e22db8e..86de7365663 100644
--- a/pkgs/tools/text/justify/default.nix
+++ b/pkgs/tools/text/justify/default.nix
@@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-406OhJt2Ila/LIhfqJXhbFqFxJJiRyMVI4/VK8Y43kc=";
   };
 
+  postPatch = ''
+    sed '1i#include <algorithm>' -i src/stringHelper.h # gcc12
+  '';
+
   nativeBuildInputs = [ cmake ];
 
   installPhase = ''