Commit c947f538 authored by Kira Bruneau's avatar Kira Bruneau
Browse files

zynaddsubfx: migrate to by-name

parent e2158a5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,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";
  };