@@ -1,14 +1,23 @@
1−{ stdenv, mkDerivation, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
1+{ stdenv, mkDerivation, fetchpatch, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
22
33mkDerivation {
44 name = "wpa_gui-${wpa_supplicant.version}";
55
66 inherit (wpa_supplicant) src;
77
8+ patches = [
9+ # Fix build with Inkscape 1.0
10+ # https://github.com/NixOS/nixpkgs/issues/86930
11+ (fetchpatch {
12+ url = "https://w1.fi/cgit/hostap/patch/?id=0388992905a5c2be5cba9497504eaea346474754";
13+ sha256 = "YDSY7l/qEco+aZYcYHLf/rxCKvPw35ibGoMorjA5GhY=";
14+ })
15+ ];
16+
817 buildInputs = [ qtbase ];
918 nativeBuildInputs = [ qmake inkscape imagemagick ];
1019
11− prePatch = ''
20+ postPatch = ''
1221 cd wpa_supplicant/wpa_gui-qt4
1322 '';
1423