zynaddsubfx: use Zyn-Fusion logo for zest build

Derived from https://raw.githubusercontent.com/mruby-zest/mruby-zest/ea4894620bf80ae59593b5d404b950d436a91e6c/example/ZynLogo.qml
This commit is contained in:
Kira Bruneau 2021-01-16 14:41:53 -05:00 committed by Kira Bruneau
parent 5f9b871b72
commit dc0a907d87
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<svg viewBox="64 60 33 33" xmlns="http://www.w3.org/2000/svg">
<polygon points="97 64 64 61 67.3 63.3 64 63 87 79 97 66 95.6 65.9" fill="#2E3239"/>
<polygon points="97 90 74 74 64 87 65.4 87.1 64 89 97 92 93.7 89.7" fill="#2E3239"/>
<polygon points="64 62 97 65 87 78" fill="#50C3C7"/>
<polygon points="97 91 64 88 74 75" fill="#57C1A6"/>
</svg>

After

Width:  |  Height:  |  Size: 354 B

View file

@ -102,6 +102,14 @@ in stdenv.mkDerivation rec {
runHook postCheck
'';
# Use Zyn-Fusion logo for zest build
# Manually derived from https://github.com/mruby-zest/mruby-zest-build/blob/3.0.6/src/mruby-zest/example/ZynLogo.qml#L65-L97
postInstall = lib.optionalString (guiModule == "zest") ''
rm -r "$out/share/pixmaps"
mkdir -p "$out/share/icons/hicolor/scalable/apps"
cp ${./ZynLogo.svg} "$out/share/icons/hicolor/scalable/apps/zynaddsubfx.svg"
'';
# When building with zest GUI, patch plugins
# and standalone executable to properly locate zest
postFixup = lib.optionalString (guiModule == "zest") ''