wpa_supplicant_gui: fix build with Inkscape 1.0

This commit is contained in:
Jan Tojnar 2020-05-17 08:40:30 +02:00
parent e16ca535e9
commit 219382bf28
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,14 +1,23 @@
{ stdenv, mkDerivation, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
{ stdenv, mkDerivation, fetchpatch, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
mkDerivation {
name = "wpa_gui-${wpa_supplicant.version}";
inherit (wpa_supplicant) src;
patches = [
# Fix build with Inkscape 1.0
# https://github.com/NixOS/nixpkgs/issues/86930
(fetchpatch {
url = "https://w1.fi/cgit/hostap/patch/?id=0388992905a5c2be5cba9497504eaea346474754";
sha256 = "YDSY7l/qEco+aZYcYHLf/rxCKvPw35ibGoMorjA5GhY=";
})
];
buildInputs = [ qtbase ];
nativeBuildInputs = [ qmake inkscape imagemagick ];
prePatch = ''
postPatch = ''
cd wpa_supplicant/wpa_gui-qt4
'';