13 name = "synthesia.png";
14 url = "https://cdn.synthesia.app/images/headerIcon.png";
15 hash = "sha256-M9cQqHwwjko5pchdNtIMjYwd4joIvBphAYnpw73qYzM=";
18 stdenvNoCC.mkDerivation rec {
25 desktopName = "Synthesia";
26 comment = meta.description;
33 startupWMClass = "synthesia.exe";
39 wineWowPackages.stable
43 url = "https://cdn.synthesia.app/files/Synthesia-${version}-installer.exe";
44 hash = "sha256-BFTsbesfMqxY1731ss6S0w8BcUaoqjVrr62VeU1BfrU=";
54 cat <<'EOF' > $out/bin/synthesia
56 export PATH=${wineWowPackages.stable}/bin:$PATH
58 export WINEPREFIX="''${SYNTHESIA_HOME:-"''${XDG_DATA_HOME:-"''${HOME}/.local/share"}/synthesia"}/wine"
59 export WINEDLLOVERRIDES="mscoree=" # disable mono
60 if [ ! -d "$WINEPREFIX" ] ; then
61 mkdir -p "$WINEPREFIX"
64 wine "$WINEPREFIX/drive_c/Program Files (x86)/Synthesia/Synthesia.exe"
66 chmod +x $out/bin/synthesia
67 install -Dm644 ${icon} $out/share/icons/hicolor/48x48/apps/synthesia.png
72 description = "A fun way to learn how to play the piano";
73 homepage = "https://synthesiagame.com/";
74 downloadPage = "https://synthesiagame.com/download";
75 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
76 license = licenses.unfree;
77 maintainers = with maintainers; [ ners ];
78 platforms = wineWowPackages.stable.meta.platforms;