From 4bcf0dcf8d5de980e021697a35682d15c5090796 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Thu, 3 Feb 2022 01:48:58 -0300 Subject: [PATCH] wxwidgets: rename files --- .../{2.8/default.nix => wxGTK28.nix} | 0 .../{2.9/default.nix => wxGTK29.nix} | 2 +- .../{3.0/default.nix => wxGTK30.nix} | 2 +- .../{3.1/default.nix => wxGTK31.nix} | 7 ++--- .../wxwidgets/{3.0/mac.nix => wxmac30.nix} | 0 pkgs/top-level/all-packages.nix | 31 ++++++------------- 6 files changed, 14 insertions(+), 28 deletions(-) rename pkgs/development/libraries/wxwidgets/{2.8/default.nix => wxGTK28.nix} (100%) rename pkgs/development/libraries/wxwidgets/{2.9/default.nix => wxGTK29.nix} (98%) rename pkgs/development/libraries/wxwidgets/{3.0/default.nix => wxGTK30.nix} (98%) rename pkgs/development/libraries/wxwidgets/{3.1/default.nix => wxGTK31.nix} (95%) rename pkgs/development/libraries/wxwidgets/{3.0/mac.nix => wxmac30.nix} (100%) diff --git a/pkgs/development/libraries/wxwidgets/2.8/default.nix b/pkgs/development/libraries/wxwidgets/wxGTK28.nix similarity index 100% rename from pkgs/development/libraries/wxwidgets/2.8/default.nix rename to pkgs/development/libraries/wxwidgets/wxGTK28.nix diff --git a/pkgs/development/libraries/wxwidgets/2.9/default.nix b/pkgs/development/libraries/wxwidgets/wxGTK29.nix similarity index 98% rename from pkgs/development/libraries/wxwidgets/2.9/default.nix rename to pkgs/development/libraries/wxwidgets/wxGTK29.nix index 46ef04dcb7a1..4a33d9263ed7 100644 --- a/pkgs/development/libraries/wxwidgets/2.9/default.nix +++ b/pkgs/development/libraries/wxwidgets/wxGTK29.nix @@ -35,7 +35,7 @@ stdenv.mkDerivation rec { patches = [ # https://github.com/wxWidgets/wxWidgets/issues/17942 - ../0001-fix-assertion-using-hide-in-destroy.patch + ./0001-fix-assertion-using-hide-in-destroy.patch ]; nativeBuildInputs = [ diff --git a/pkgs/development/libraries/wxwidgets/3.0/default.nix b/pkgs/development/libraries/wxwidgets/wxGTK30.nix similarity index 98% rename from pkgs/development/libraries/wxwidgets/3.0/default.nix rename to pkgs/development/libraries/wxwidgets/wxGTK30.nix index 0469ccbd0dfb..93189846c712 100644 --- a/pkgs/development/libraries/wxwidgets/3.0/default.nix +++ b/pkgs/development/libraries/wxwidgets/wxGTK30.nix @@ -66,7 +66,7 @@ stdenv.mkDerivation rec { patches = [ # https://github.com/wxWidgets/wxWidgets/issues/17942 - ../0001-fix-assertion-using-hide-in-destroy.patch + ./0001-fix-assertion-using-hide-in-destroy.patch ]; configureFlags = [ diff --git a/pkgs/development/libraries/wxwidgets/3.1/default.nix b/pkgs/development/libraries/wxwidgets/wxGTK31.nix similarity index 95% rename from pkgs/development/libraries/wxwidgets/3.1/default.nix rename to pkgs/development/libraries/wxwidgets/wxGTK31.nix index 8ceaafdfece9..ae6f3e6a0c9e 100644 --- a/pkgs/development/libraries/wxwidgets/3.1/default.nix +++ b/pkgs/development/libraries/wxwidgets/wxGTK31.nix @@ -49,7 +49,7 @@ stdenv.mkDerivation rec { patches = [ # https://github.com/wxWidgets/wxWidgets/issues/17942 - ../0001-fix-assertion-using-hide-in-destroy.patch + ./0001-fix-assertion-using-hide-in-destroy.patch ]; nativeBuildInputs = [ pkg-config ]; @@ -138,13 +138,12 @@ stdenv.mkDerivation rec { ''; license = licenses.wxWindows; maintainers = with maintainers; [ AndersonTorres tfmoraes ]; - platforms = platforms.linux ++ platforms.darwin; - broken = stdenv.isDarwin; # ofBorg is failing, don't know if internal + platforms = platforms.unix; + badPlatforms = platforms.darwin; # ofBorg is failing, don't know if internal }; passthru = { inherit gtk; inherit compat28 compat30 unicode; }; - } diff --git a/pkgs/development/libraries/wxwidgets/3.0/mac.nix b/pkgs/development/libraries/wxwidgets/wxmac30.nix similarity index 100% rename from pkgs/development/libraries/wxwidgets/3.0/mac.nix rename to pkgs/development/libraries/wxwidgets/wxmac30.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index abb71404a342..1fac0254c3c8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20544,30 +20544,17 @@ with pkgs; wxGTK = wxGTK28; - wxGTK30 = wxGTK30-gtk2; - wxGTK31 = wxGTK31-gtk2; + wxGTK28 = callPackage ../development/libraries/wxwidgets/wxGTK28.nix { }; + wxGTK29 = callPackage ../development/libraries/wxwidgets/wxGTK29.nix { }; + wxGTK30 = callPackage ../development/libraries/wxwidgets/wxGTK30.nix { }; + wxGTK31 = callPackage ../development/libraries/wxwidgets/wxGTK31.nix { }; + wxmac = callPackage ../development/libraries/wxwidgets/wxmac30.nix { }; - wxGTK28 = callPackage ../development/libraries/wxwidgets/2.8 { }; + wxGTK30-gtk2 = wxGTK30.override { withGtk2 = true; }; + wxGTK30-gtk3 = wxGTK30.override { withGtk2 = false; }; - wxGTK29 = callPackage ../development/libraries/wxwidgets/2.9 { }; - - wxGTK30-gtk2 = callPackage ../development/libraries/wxwidgets/3.0 { - withGtk2 = true; - }; - - wxGTK30-gtk3 = callPackage ../development/libraries/wxwidgets/3.0 { - withGtk2 = false; - }; - - wxGTK31-gtk2 = callPackage ../development/libraries/wxwidgets/3.1 { - withGtk2 = true; - }; - - wxGTK31-gtk3 = callPackage ../development/libraries/wxwidgets/3.1 { - withGtk2 = false; - }; - - wxmac = callPackage ../development/libraries/wxwidgets/3.0/mac.nix { }; + wxGTK31-gtk2 = wxGTK30.override { withGtk2 = true; }; + wxGTK31-gtk3 = wxGTK30.override { withGtk2 = false; }; wxSVG = callPackage ../development/libraries/wxSVG { wxGTK = wxGTK30-gtk3;