Skip to content

Commit 0d8e49a

Browse files
Fix version string, add Wayland and X11 wmclass hints
Version was incorrectly set to 0.1.0-chromatic-quantize despite nix-support being based on main. Set SDL hints for icon matching on both Wayland and X11 backends. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cfa3fc8 commit 0d8e49a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
packages.${system} = {
109109
midimech = pkgs.stdenv.mkDerivation {
110110
pname = "midimech";
111-
version = "0.1.0-chromatic-quantize";
111+
version = "0.1.0";
112112
src = self;
113113

114114
nativeBuildInputs = [ pkgs.makeWrapper pkgs.pkg-config ];
@@ -140,9 +140,11 @@
140140
chmod +x $out/bin/midimech
141141
patchShebangs $out/bin/midimech
142142
143-
# Wrap to include runtime libraries + set SDL app ID for Wayland icon matching
143+
# Wrap to include runtime libraries + set window class for desktop icon matching
144144
wrapProgram $out/bin/midimech \
145145
--prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
146+
--set SDL_VIDEO_WAYLAND_WMCLASS midimech \
147+
--set SDL_VIDEO_X11_WMCLASS midimech \
146148
--set SDL_APP_ID midimech
147149
148150
# Desktop entry for application launchers

0 commit comments

Comments
 (0)