Merge pull request #242446 from trofi/givaro-gcc-13-fix

givaro: backport gcc-13 build fix

authored by Sergei Trofimovich and committed by GitHub 3da3074f 7cba6c25

+19 -1
+19 -1
pkgs/development/libraries/givaro/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, automake, autoconf, libtool, autoreconfHook, gmpxx }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , automake 6 + , autoconf 7 + , libtool 8 + , autoreconfHook 9 + , gmpxx 10 + }: 2 11 stdenv.mkDerivation rec { 3 12 pname = "givaro"; 4 13 version = "4.2.0"; ··· 8 17 rev = "v${version}"; 9 18 sha256 = "sha256-KR0WJc0CSvaBnPRott4hQJhWNBb/Wi6MIhcTExtVobQ="; 10 19 }; 20 + patches = [ 21 + # Pull upstream fix for gcc-13: 22 + # https://github.com/linbox-team/givaro/pull/218 23 + (fetchpatch { 24 + name = "gcc-13.patch"; 25 + url = "https://github.com/linbox-team/givaro/commit/c7744bb133496cd7ac04688f345646d505e1bf52.patch"; 26 + hash = "sha256-aAA5o8Va10v0Pqgcpx7qM0TAZiNQgXoR6N9xecj7tDA="; 27 + }) 28 + ]; 11 29 12 30 enableParallelBuilding = true; 13 31