summary refs log tree commit diff
path: root/pkgs/applications/terminal-emulators/foot/default.nix
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-07-22 15:46:12 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-07-22 15:46:12 +0200
commit3ff36d31e46d786498303b7170f40057af60d073 (patch)
tree050d1ba42853d6f3490b877df7599d303c2234c5 /pkgs/applications/terminal-emulators/foot/default.nix
parent35e3d5d6aa11f343b5fff108f033ad951c312e85 (diff)
downloadnixpkgs-3ff36d31e46d786498303b7170f40057af60d073.tar
nixpkgs-3ff36d31e46d786498303b7170f40057af60d073.tar.gz
nixpkgs-3ff36d31e46d786498303b7170f40057af60d073.tar.bz2
nixpkgs-3ff36d31e46d786498303b7170f40057af60d073.tar.lz
nixpkgs-3ff36d31e46d786498303b7170f40057af60d073.tar.xz
nixpkgs-3ff36d31e46d786498303b7170f40057af60d073.tar.zst
nixpkgs-3ff36d31e46d786498303b7170f40057af60d073.zip
foot: fix PGO builds with clang
A regression I unfortunately did not notice despite adding tests for
it (which even failed). See:

* https://codeberg.org/dnkl/foot/issues/642
* https://codeberg.org/dnkl/foot/pulls/643
Diffstat (limited to 'pkgs/applications/terminal-emulators/foot/default.nix')
-rw-r--r--pkgs/applications/terminal-emulators/foot/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/foot/default.nix b/pkgs/applications/terminal-emulators/foot/default.nix
index f069338ae8a..a5740fc45b1 100644
--- a/pkgs/applications/terminal-emulators/foot/default.nix
+++ b/pkgs/applications/terminal-emulators/foot/default.nix
@@ -2,6 +2,7 @@
 , lib
 , fetchzip
 , fetchurl
+, fetchpatch
 , runCommandNoCC
 , fcft
 , freetype
@@ -98,6 +99,15 @@ stdenv.mkDerivation rec {
     sha256 = "1k0alz991cslls4926c5gq02pdq0vfw9jfpprh2a1vb59xgikv7h";
   };
 
+  patches = [
+    # Fixes PGO builds with clang
+    (fetchpatch {
+      url = "https://codeberg.org/dnkl/foot/commit/2acd4b34c57659d86dca76c58e4363de9b0a1f17.patch";
+      sha256 = "13xi9ppaqx2p88cxbh6801ry9ral70ylh40agn6ij7pklybs4d7s";
+      includes = [ "pgo/pgo.c" ];
+    })
+  ];
+
   depsBuildBuild = [
     pkg-config
   ];