mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 08:58:12 +00:00
rusty-psn-gui: add mainProgram, fix wayland (#398255)
This commit is contained in:
commit
e230ebe0fc
@ -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";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user