Merge pull request #287961 from trofi/sqlcheck-gcc-13-fix

sqlcheck: fix `gcc-13` build failure
This commit is contained in:
Mario Rodas 2024-02-11 09:48:47 -05:00 committed by GitHub
commit 91e666e72a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;