mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
sortmerna: fix build with gcc 15
This commit is contained in:
parent
bd6852ab22
commit
7f172e35fd
2 changed files with 17 additions and 0 deletions
|
|
@ -49,6 +49,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
"-DZLIB_STATIC=off"
|
||||
];
|
||||
|
||||
patches = [
|
||||
./ssw-stdbool.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Fix missing pthread dependency for the main binary.
|
||||
substituteInPlace src/sortmerna/CMakeLists.txt \
|
||||
|
|
|
|||
13
pkgs/by-name/so/sortmerna/ssw-stdbool.patch
Normal file
13
pkgs/by-name/so/sortmerna/ssw-stdbool.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/include/ssw.h b/include/ssw.h
|
||||
index 5259c95..32bb146 100644
|
||||
--- a/include/ssw.h
|
||||
+++ b/include/ssw.h
|
||||
@@ -35,7 +35,7 @@ struct _profile;
|
||||
typedef struct _profile s_profile;
|
||||
|
||||
#ifndef __cplusplus
|
||||
-typedef unsigned char bool;
|
||||
+#include <stdbool.h>
|
||||
static const bool False = 0;
|
||||
static const bool True = 1;
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue