source-highlight: fix build with clang 16
Fetch upstream patch to add C++17 compatibility (the default in clang 16) and standardize fetchpatch URLs and hashes.
This commit is contained in:
parent
b7a9cd56f3
commit
3f99aef10e
1 changed files with 12 additions and 4 deletions
|
@ -14,16 +14,24 @@ stdenv.mkDerivation rec {
|
||||||
patches = [
|
patches = [
|
||||||
# gcc-11 compat upstream patch
|
# gcc-11 compat upstream patch
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "http://git.savannah.gnu.org/cgit/src-highlite.git/patch/?id=904949c9026cb772dc93fbe0947a252ef47127f4";
|
url = "https://git.savannah.gnu.org/cgit/src-highlite.git/patch/?id=904949c9026cb772dc93fbe0947a252ef47127f4";
|
||||||
sha256 = "1wnj0jmkmrwjww7qk9dvfxh8h06jdn7mi8v2fvwh95b6x87z5l47";
|
hash = "sha256-h9DyD+pmlQT5dmKjWI9t0gCIYHe7pYkP55LnOqsE0vI=";
|
||||||
excludes = [ "ChangeLog" ];
|
excludes = [ "ChangeLog" ];
|
||||||
})
|
})
|
||||||
|
|
||||||
# Upstream fix for clang-13 and gcc-12 test support
|
# Upstream fix for clang-13 and gcc-12 test support
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
name = "gcc-12.patch";
|
name = "gcc-12.patch";
|
||||||
url = "http://git.savannah.gnu.org/cgit/src-highlite.git/patch/?id=ab9fe5cb9b85c5afab94f2a7f4b6d7d473c14ee9";
|
url = "https://git.savannah.gnu.org/cgit/src-highlite.git/patch/?id=ab9fe5cb9b85c5afab94f2a7f4b6d7d473c14ee9";
|
||||||
sha256 = "1v33zd2766k7cdgmajw2lffw9wd7v4f8z01f40z53f6bp608nr62";
|
hash = "sha256-wmSLgLnLuFE+IC6AjxzZp/HEnaOCS1VfY2cac0T7Y+w=";
|
||||||
|
})
|
||||||
|
] ++ lib.optionals stdenv.cc.isClang [
|
||||||
|
# Adds compatibility with C++17 by removing the `register` storage class specifier.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "remove-register-keyword";
|
||||||
|
url = "https://git.savannah.gnu.org/cgit/src-highlite.git/patch/?id=416b39758dba2c74515584514a959ad1b0ad50d1";
|
||||||
|
hash = "sha256-R5A7IGHhU82EqceMCsuNBanhRz4dFVqiaH8637dr7jw=";
|
||||||
|
includes = [ "lib/*" ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue