rusty-psn-gui: add mainProgram, fix wayland (#398255)

This commit is contained in:
Aleksana 2025-04-13 17:20:57 +08:00 committed by GitHub
commit e230ebe0fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,8 @@
openssl,
xorg,
libGL,
libxkbcommon,
wayland,
withGui ? false, # build GUI version
}:
@ -59,6 +61,8 @@ rustPlatform.buildRustPackage rec {
xorg.libXi
xorg.libxcb
libGL
libxkbcommon
wayland
];
buildNoDefaultFeatures = true;
@ -96,6 +100,6 @@ rustPlatform.buildRustPackage rec {
license = lib.licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ AngryAnt ];
mainProgram = "rusty-psn";
mainProgram = if withGui then "rusty-psn-gui" else "rusty-psn";
};
}