rusty-psn-gui: add mainProgram, fix wayland (#398255)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user