rusty-psn-gui: fix build, lib.optionals

This commit is contained in:
Emil "AngryAnt" Johansen 2023-05-09 12:35:34 +02:00
parent 4776229225
commit 69fce48b0d
No known key found for this signature in database
GPG key ID: 0C6DFE2FB234534A

View file

@ -5,6 +5,11 @@
, makeDesktopItem
, copyDesktopItems
, pkg-config
, cmake
, fontconfig
, glib
, gtk3
, freetype
, openssl
, xorg
, libGL
@ -26,10 +31,18 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [
pkg-config
] ++ lib.optionals withGui [
copyDesktopItems
cmake
];
buildInputs = if withGui then [
buildInputs = [
openssl
] ++ lib.optionals withGui [
fontconfig
glib
gtk3
freetype
openssl
xorg.libxcb
xorg.libX11
@ -39,8 +52,6 @@ rustPlatform.buildRustPackage rec {
xorg.libxcb
libGL
libGL.dev
] else [
openssl
];
buildNoDefaultFeatures = true;