lol

medusa: pull upstream fix for fno-common toolchains

Without the chanhe build fails on -fno-common tollchains as:

$ nix build -L --impure --expr 'with import ./. {}; medusa.overrideAttrs (oa: { NIX_CFLAGS_COMPILE = (["-fno-common"] ++ [oa.NIX_CFLAGS_COMPILE or ""]); })'
...
ld: ../medusa-trace.o:/build/source/src/modsrc/../medusa.h:69:
multiple definition of `iErrorLevel'; cvs.o:/build/source/src/modsrc/../medusa.h:69: first defined here

authored by

Sergei Trofimovich and committed by
Rick van Schijndel
ab456c4d 0be721b1

+11 -1
+11 -1
pkgs/tools/security/medusa/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, pkg-config, freerdp, openssl, libssh2 }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, freerdp, openssl, libssh2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "medusa-unstable"; ··· 10 10 rev = "292193b3995444aede53ff873899640b08129fc7"; 11 11 sha256 = "0njlz4fqa0165wdmd5y8lfnafayf3c4la0r8pf3hixkdwsss1509"; 12 12 }; 13 + 14 + patches = [ 15 + # Pull upstream fix for -fno-common tollchains like gcc-10: 16 + # https://github.com/jmk-foofus/medusa/pull/36 17 + (fetchpatch { 18 + name = "fno-common.patch"; 19 + url = "https://github.com/jmk-foofus/medusa/commit/a667656ad085b3eb95309932666c250d97a92767.patch"; 20 + sha256 = "01marqqhjd3qwar3ymp50y1h2im5ilgpaxk7wrc2kcxgmzvbdfxc"; 21 + }) 22 + ]; 13 23 14 24 outputs = [ "out" "man" ]; 15 25