formatting
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, makeWrapper
|
||||
, dbus
|
||||
, libpulseaudio
|
||||
, gtk4
|
||||
, libadwaita
|
||||
, glib
|
||||
, bluez
|
||||
, wayland
|
||||
, libxkbcommon
|
||||
, libGL
|
||||
, vulkan-loader
|
||||
, xorg
|
||||
, gsettings-desktop-schemas
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
makeWrapper,
|
||||
dbus,
|
||||
libpulseaudio,
|
||||
gtk4,
|
||||
libadwaita,
|
||||
glib,
|
||||
bluez,
|
||||
wayland,
|
||||
libxkbcommon,
|
||||
libGL,
|
||||
vulkan-loader,
|
||||
xorg,
|
||||
gsettings-desktop-schemas,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@@ -58,18 +59,20 @@ rustPlatform.buildRustPackage rec {
|
||||
# Create wrapper script instead of wrapping in-place
|
||||
postInstall = ''
|
||||
mv $out/bin/librepods $out/bin/.librepods-unwrapped
|
||||
|
||||
|
||||
makeWrapper $out/bin/.librepods-unwrapped $out/bin/librepods \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
|
||||
wayland
|
||||
libxkbcommon
|
||||
libGL
|
||||
vulkan-loader
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXi
|
||||
]}" \
|
||||
--prefix LD_LIBRARY_PATH : "${
|
||||
lib.makeLibraryPath [
|
||||
wayland
|
||||
libxkbcommon
|
||||
libGL
|
||||
vulkan-loader
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXi
|
||||
]
|
||||
}" \
|
||||
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
||||
--set GDK_BACKEND "wayland,x11"
|
||||
'';
|
||||
@@ -82,4 +85,4 @@ rustPlatform.buildRustPackage rec {
|
||||
mainProgram = "librepods";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user