12 name = "synthesia.png";
13 url = "https://cdn.synthesia.app/images/headerIcon.png";
14 hash = "sha256-M9cQqHwwjko5pchdNtIMjYwd4joIvBphAYnpw73qYzM=";
17 stdenvNoCC.mkDerivation rec {
24 desktopName = "Synthesia";
25 comment = meta.description;
28 categories = [ "Game" "Audio" ];
29 startupWMClass = "synthesia.exe";
35 wineWowPackages.stable
39 url = "https://cdn.synthesia.app/files/Synthesia-${version}-installer.exe";
40 hash = "sha256-BFTsbesfMqxY1731ss6S0w8BcUaoqjVrr62VeU1BfrU=";
50 cat <<'EOF' > $out/bin/synthesia
52 export PATH=${wineWowPackages.stable}/bin:$PATH
54 export WINEPREFIX="''${SYNTHESIA_HOME:-"''${XDG_DATA_HOME:-"''${HOME}/.local/share"}/synthesia"}/wine"
55 export WINEDLLOVERRIDES="mscoree=" # disable mono
56 if [ ! -d "$WINEPREFIX" ] ; then
57 mkdir -p "$WINEPREFIX"
60 wine "$WINEPREFIX/drive_c/Program Files (x86)/Synthesia/Synthesia.exe"
62 chmod +x $out/bin/synthesia
63 install -Dm644 ${icon} $out/share/icons/hicolor/48x48/apps/synthesia.png
68 description = "A fun way to learn how to play the piano";
69 homepage = "https://synthesiagame.com/";
70 downloadPage = "https://synthesiagame.com/download";
71 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
72 license = licenses.unfree;
73 maintainers = with maintainers; [ ners ];
74 platforms = wineWowPackages.stable.meta.platforms;