diff --git a/pkgs/applications/office/mmex/default.nix b/pkgs/by-name/mm/mmex/package.nix similarity index 83% rename from pkgs/applications/office/mmex/default.nix rename to pkgs/by-name/mm/mmex/package.nix index c45500832f64..a5eb63ddc001 100644 --- a/pkgs/applications/office/mmex/default.nix +++ b/pkgs/by-name/mm/mmex/package.nix @@ -15,7 +15,8 @@ sqlite, wxGTK32, gtk3, - darwin, + lua, + wxsqlite3, }: stdenv.mkDerivation rec { @@ -39,9 +40,9 @@ stdenv.mkDerivation rec { }) ]; - postPatch = lib.optionalString (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isx86_64) '' - substituteInPlace 3rd/CMakeLists.txt \ - --replace "-msse4.2 -maes" "" + postPatch = '' + substituteInPlace src/dbwrapper.cpp src/model/Model_Report.cpp \ + --replace-fail "sqlite3mc_amalgamation.h" "sqlite3.h" ''; nativeBuildInputs = @@ -59,19 +60,21 @@ stdenv.mkDerivation rec { lsb-release ]; - buildInputs = - [ - curl - sqlite - wxGTK32 - gtk3 - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - darwin.libobjc - ]; + buildInputs = [ + curl + sqlite + wxGTK32 + gtk3 + lua + wxsqlite3 + ]; strictDeps = true; + cmakeFlags = [ + "-DWXSQLITE3_HAVE_CODEC=1" + ]; + env.NIX_CFLAGS_COMPILE = toString ( lib.optionals stdenv.cc.isClang [ "-Wno-deprecated-copy" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c740e1a8bfa3..7e624e8e2080 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14373,12 +14373,6 @@ with pkgs; ocamlPackages = ocaml-ng.ocamlPackages_4_14; }; - mmex = callPackage ../applications/office/mmex { - wxGTK32 = wxGTK32.override { - withWebKit = true; - }; - }; - mmlgui = callPackage ../applications/audio/mmlgui { inherit (darwin.apple_sdk.frameworks) Carbon Cocoa; libvgm = libvgm.override {