diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2024-02-11 07:49:33 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2024-02-11 07:49:33 +0000 |
commit | 02e8a982ffb7dc2577ae501665f8d65dbca4e07a (patch) | |
tree | d580010a51dd13f910376eb72c5b7cd9a069a1d8 /pkgs/development/tools | |
parent | ef6206934d5726ed9315ac78879f5ba2a6b55785 (diff) | |
download | nixlib-02e8a982ffb7dc2577ae501665f8d65dbca4e07a.tar nixlib-02e8a982ffb7dc2577ae501665f8d65dbca4e07a.tar.gz nixlib-02e8a982ffb7dc2577ae501665f8d65dbca4e07a.tar.bz2 nixlib-02e8a982ffb7dc2577ae501665f8d65dbca4e07a.tar.lz nixlib-02e8a982ffb7dc2577ae501665f8d65dbca4e07a.tar.xz nixlib-02e8a982ffb7dc2577ae501665f8d65dbca4e07a.tar.zst nixlib-02e8a982ffb7dc2577ae501665f8d65dbca4e07a.zip |
sqlcheck: fix `gcc-13` build failure
Without the change build fails on `master` as https://hydra.nixos.org/build/249068035: In file included from /build/sqlcheck/src/configuration.cpp:3: /build/sqlcheck/src/include/configuration.h:88:8: error: 'uint32_t' in namespace 'std' does not name a type; did you mean 'wint_t'? 88 | std::uint32_t line_number; | ^~~~~~~~ | wint_t
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/database/sqlcheck/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/tools/database/sqlcheck/default.nix b/pkgs/development/tools/database/sqlcheck/default.nix index a4aec98cbd09..28f8b174cbc7 100644 --- a/pkgs/development/tools/database/sqlcheck/default.nix +++ b/pkgs/development/tools/database/sqlcheck/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, cmake }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }: stdenv.mkDerivation rec { pname = "sqlcheck"; @@ -12,6 +12,16 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; + patches = [ + # Fix gcc-13 build failure: + # https://github.com/jarulraj/sqlcheck/pull/62 + (fetchpatch { + name = "gcc-13.patch"; + url = "https://github.com/jarulraj/sqlcheck/commit/ca131db13b860cf1d9194a1c7f7112f28f49acca.patch"; + hash = "sha256-uoF7rYvjdIUu82JCLXq/UGswgwM6JCpmABP4ItWjDe4="; + }) + ]; + nativeBuildInputs = [ cmake ]; doCheck = true; |