Unverified Commit 5cd633d0 authored by Kira Bruneau's avatar Kira Bruneau Committed by GitHub
Browse files

zynaddsubfx: build with gcc14 to fix unresponsive ui (#499096)

parents ed958af1 b743b5a3
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  gcc14Stdenv,
  fetchFromGitHub,
  bison,
  pkg-config,
@@ -11,7 +11,10 @@
  libx11,
}:

stdenv.mkDerivation (finalAttrs: {
# UI becomes unresponsive when built with GCC 15
# (building with -std=gnu17 does not fix the issue)
# https://github.com/mruby-zest/mruby-zest-build/issues/127
gcc14Stdenv.mkDerivation (finalAttrs: {
  pname = "mruby-zest";
  version = "3.0.6";

@@ -20,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
    repo = "mruby-zest-build";
    tag = finalAttrs.version;
    fetchSubmodules = true;
    sha256 = "sha256-rIb6tQimwrUj+623IU5zDyKNWsNYYBElLQClOsP+5Dc=";
    hash = "sha256-rIb6tQimwrUj+623IU5zDyKNWsNYYBElLQClOsP+5Dc=";
  };

  patches = [
+8 −4
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
  pkg-config,

  # Required dependencies
  fftw,
  fftwSinglePrec,
  liblo,
  minixml,
  zlib,
@@ -31,7 +31,7 @@
  sndio,

  # Optional GUI dependencies
  guiModule ? "off",
  guiModule ? "zest",
  cairo,
  fltk,
  libGL,
@@ -100,7 +100,7 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  buildInputs = [
    fftw
    fftwSinglePrec
    liblo
    minixml
    zlib
@@ -184,9 +184,12 @@ stdenv.mkDerivation (finalAttrs: {
      --prefix LD_LIBRARY_PATH : ${mruby-zest}
  '';

  passthru = {
    inherit mruby-zest;
  };

  meta = {
    description = "High quality software synthesizer (${guiName} GUI)";
    mainProgram = "zynaddsubfx";
    homepage =
      if guiModule == "zest" then
        "https://zynaddsubfx.sourceforge.io/zyn-fusion.html"
@@ -196,6 +199,7 @@ stdenv.mkDerivation (finalAttrs: {
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ kira-bruneau ];
    platforms = lib.platforms.all;
    mainProgram = "zynaddsubfx";

    # On macOS:
    # - Tests don't compile (ld: unknown option: --no-as-needed)
+0 −5
Original line number Diff line number Diff line
@@ -11000,11 +11000,6 @@ with pkgs;
    SDL_image = SDL_image.override { SDL = SDL_sixel; };
  };

  zynaddsubfx = callPackage ../applications/audio/zynaddsubfx {
    guiModule = "zest";
    fftw = fftwSinglePrec;
  };

  zynaddsubfx-fltk = zynaddsubfx.override {
    guiModule = "fltk";
  };