Merge pull request #250337 from trofi/cm256cc-gcc-13-fix

This commit is contained in:
Artturi
2023-09-05 00:27:45 +03:00
committed by GitHub
+11 -1
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, boost } :
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost } :
stdenv.mkDerivation rec {
pname = "cm256cc";
@@ -11,6 +11,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-T7ZUVVYGdzAialse//MoqWCVNBpbZvzWMAKc0cw7O9k=";
};
patches = [
# Pull fix pending upstream inclusion for gcc-13 support:
# https://github.com/f4exb/cm256cc/pull/18
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/f4exb/cm256cc/commit/a7f142bcdae8be1c646d67176ba0ba0f7e8dcd68.patch";
hash = "sha256-J7bm44sqnGsdPhJxQrE8LDxZ6tkTzLslHQnnKmtgrtM=";
})
];
nativeBuildInputs = [ cmake ];
buildInputs = [ boost ];