3
0
Fork 0
forked from mirrors/nixpkgs

teeworlds: apply patch for CVE-2021-43518

Closes #155352
This commit is contained in:
Thomas Gerbet 2023-12-15 02:10:46 +01:00
parent adf2347f8b
commit b680d961a8

View file

@ -1,4 +1,4 @@
{ fetchFromGitHub, lib, stdenv, cmake, pkg-config, python3, alsa-lib { fetchFromGitHub, fetchpatch, lib, stdenv, cmake, pkg-config, python3, alsa-lib
, libX11, libGLU, SDL2, lua5_3, zlib, freetype, wavpack, icoutils , libX11, libGLU, SDL2, lua5_3, zlib, freetype, wavpack, icoutils
, nixosTests , nixosTests
, Cocoa , Cocoa
@ -21,6 +21,11 @@ stdenv.mkDerivation rec {
# Can't use fetchpatch or fetchpatch2 because of https://github.com/NixOS/nixpkgs/issues/32084 # Can't use fetchpatch or fetchpatch2 because of https://github.com/NixOS/nixpkgs/issues/32084
# Using fetchurl instead is also not a good idea, see https://github.com/NixOS/nixpkgs/issues/32084#issuecomment-727223713 # Using fetchurl instead is also not a good idea, see https://github.com/NixOS/nixpkgs/issues/32084#issuecomment-727223713
./rename-VERSION-to-VERSION.txt.patch ./rename-VERSION-to-VERSION.txt.patch
(fetchpatch {
name = "CVE-2021-43518.patch";
url = "https://salsa.debian.org/games-team/teeworlds/-/raw/a6c4b23c1ce73466e6d89bccbede70e61e8c9cba/debian/patches/CVE-2021-43518.patch";
hash = "sha256-2MmsucaaYjqLgMww1492gNmHmvBJm/NED+VV5pZDnBY=";
})
]; ];
postPatch = '' postPatch = ''