about summary refs log tree commit diff
path: root/pkgs/applications/editors/libresprite
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2024-01-18 12:08:45 +0300
committerK900 <me@0upti.me>2024-01-18 12:08:45 +0300
commitc02203ca3fa775b4ea0577f2600cbe9189d16ebe (patch)
tree5d68fe8f639effbb524409becb2a65399fd13817 /pkgs/applications/editors/libresprite
parentb06ff4bf8f4ad900fe0c2a61fc2946edc3a84be7 (diff)
libresprite: fix after GCC 13
Diffstat (limited to 'pkgs/applications/editors/libresprite')
-rw-r--r--pkgs/applications/editors/libresprite/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/editors/libresprite/default.nix b/pkgs/applications/editors/libresprite/default.nix
index cc9da53f2b671..3db7185bf1982 100644
--- a/pkgs/applications/editors/libresprite/default.nix
+++ b/pkgs/applications/editors/libresprite/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchpatch
 
 , cmake
 , pkg-config
@@ -38,6 +39,15 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY=";
   };
 
+  # Backport GCC 13 build fix
+  # FIXME: remove in next release
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/LibreSprite/LibreSprite/commit/6ffe8472194bf5d0a73b4b2cd7f6804d3c80aa0c.patch";
+      hash = "sha256-5chXt0H+koofIspYsCJ7/eUxMGcCBVXJcXe3U/7F9Vc=";
+    })
+  ];
+
   nativeBuildInputs = [
     cmake
     pkg-config