13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
19 repo = "${pname}-build";
20 rev = "refs/tags/${version}";
21 fetchSubmodules = true;
22 sha256 = "sha256-rIb6tQimwrUj+623IU5zDyKNWsNYYBElLQClOsP+5Dc=";
26 ./force-cxx-as-linker.patch
42 # Force optimization to fix:
43 # warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O)
44 env.NIX_CFLAGS_COMPILE = "-O3";
46 # Remove pre-built y.tab.c to generate with nixpkgs bison
48 rm mruby/mrbgems/mruby-compiler/core/y.tab.c
51 installTargets = [ "pack" ];
54 ln -s "$out/zest" "$out/zyn-fusion"
55 cp -a package/{font,libzest.so,schema,zest} "$out"
57 # mruby-widget-lib/src/api.c requires MainWindow.qml as part of a
58 # sanity check, even though qml files are compiled into the binary
59 # https://github.com/mruby-zest/mruby-zest-build/blob/3.0.6/src/mruby-widget-lib/src/api.c#L107-L124
60 # https://github.com/mruby-zest/mruby-zest-build/blob/3.0.6/linux-pack.sh#L17-L18
62 touch "$out/qml/MainWindow.qml"
66 description = "Zest Framework used in ZynAddSubFX's UI";
67 homepage = "https://github.com/mruby-zest";
68 license = licenses.lgpl21Plus;
69 maintainers = with maintainers; [ kira-bruneau ];
70 platforms = platforms.all;