about summary refs log tree commit diff
path: root/pkgs/applications/audio/zynaddsubfx
diff options
context:
space:
mode:
authorKira Bruneau <kira.bruneau@gmail.com>2021-01-16 14:41:53 -0500
committerKira Bruneau <kira.bruneau@pm.me>2022-08-04 18:04:17 -0400
commitdc0a907d87a457ab06a69463d3c0afd045b74a3c (patch)
treecb968a9258ba7cfac296a6bd4e4a5e8e1678d5e4 /pkgs/applications/audio/zynaddsubfx
parent5f9b871b72b24f066b1a1e189efd0669f2888c49 (diff)
zynaddsubfx: use Zyn-Fusion logo for zest build
Derived from https://raw.githubusercontent.com/mruby-zest/mruby-zest/ea4894620bf80ae59593b5d404b950d436a91e6c/example/ZynLogo.qml
Diffstat (limited to 'pkgs/applications/audio/zynaddsubfx')
-rw-r--r--pkgs/applications/audio/zynaddsubfx/ZynLogo.svg6
-rw-r--r--pkgs/applications/audio/zynaddsubfx/default.nix8
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/applications/audio/zynaddsubfx/ZynLogo.svg b/pkgs/applications/audio/zynaddsubfx/ZynLogo.svg
new file mode 100644
index 0000000000000..8a1bc56d0874e
--- /dev/null
+++ b/pkgs/applications/audio/zynaddsubfx/ZynLogo.svg
@@ -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>
diff --git a/pkgs/applications/audio/zynaddsubfx/default.nix b/pkgs/applications/audio/zynaddsubfx/default.nix
index e738a0fbcbe54..9b09040fc8ce5 100644
--- a/pkgs/applications/audio/zynaddsubfx/default.nix
+++ b/pkgs/applications/audio/zynaddsubfx/default.nix
@@ -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") ''