Merge pull request #175361 from trofi/fix-fno-common-for-telegram-cli

telegram-cli: pull patch pending upstream inclusion for -fno-common t…

authored by Sandro and committed by GitHub c24cea67 412855c7

+11 -1
+11 -1
pkgs/applications/networking/instant-messengers/telegram/telegram-cli/default.nix
··· 1 - { stdenv, fetchFromGitHub, jansson, lib, libconfig, libevent, libgcrypt, lua, lua53Packages 2 , makeWrapper, openssl, pkg-config, python3, readline, zlib 3 }: 4 ··· 13 sha256 = "sha256-wYBPr2b8IOycO9y/CNyGjnRsyGyYl3oiXYtTzwTurVA="; 14 fetchSubmodules = true; 15 }; 16 17 buildInputs = [ 18 jansson
··· 1 + { stdenv, fetchFromGitHub, fetchpatch, jansson, lib, libconfig, libevent, libgcrypt, lua, lua53Packages 2 , makeWrapper, openssl, pkg-config, python3, readline, zlib 3 }: 4 ··· 13 sha256 = "sha256-wYBPr2b8IOycO9y/CNyGjnRsyGyYl3oiXYtTzwTurVA="; 14 fetchSubmodules = true; 15 }; 16 + 17 + patches = [ 18 + # Pull patch pending upstream upstream inclusion for -fno-common toolchains: 19 + # https://github.com/kenorb-contrib/tg/pull/61 20 + (fetchpatch { 21 + name = "fno-common.patch"; 22 + url = "https://github.com/kenorb-contrib/tg/commit/aad2e644fffa16066b227741d54de31bddb04ff8.patch"; 23 + sha256 = "sha256-LAa5J4BVj3QCiDSs+p2bynDroMSIqCeexQvrgaDl6OE="; 24 + }) 25 + ]; 26 27 buildInputs = [ 28 jansson