Merge pull request from trofi/string-machine-gcc-13-fix

string-machine: fix build against `gcc-13`
This commit is contained in:
Nick Cao 2024-01-25 10:30:31 -05:00 committed by GitHub
commit 87fb79c7f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, boost, cairo, libGL, lv2, pkg-config }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, boost, cairo, libGL, lv2, pkg-config }:
stdenv.mkDerivation rec {
pname = "string-machine";
@ -12,6 +12,16 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
patches = [
# gcc-13 compatibility fix:
# https://github.com/jpcima/string-machine/pull/36
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/jpcima/string-machine/commit/e1f9c70da46e43beb2654b509bc824be5601a0a5.patch";
hash = "sha256-eS28wBuFjbx2tEb9gtVRZXfK0w2o1RCFTouNf8Adq+k=";
})
];
postPatch = ''
patchShebangs ./dpf/utils/generate-ttl.sh
'';