librepods rust
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
makeWrapper,
|
||||
autoPatchelfHook,
|
||||
dbus,
|
||||
libpulseaudio,
|
||||
gtk4,
|
||||
libadwaita,
|
||||
glib,
|
||||
bluez,
|
||||
wayland,
|
||||
libxkbcommon,
|
||||
libGL,
|
||||
vulkan-loader,
|
||||
xorg,
|
||||
expat,
|
||||
fontconfig,
|
||||
freetype,
|
||||
gsettings-desktop-schemas,
|
||||
}:
|
||||
|
||||
@@ -25,8 +25,8 @@ rustPlatform.buildRustPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "kavishdevar";
|
||||
repo = "librepods";
|
||||
rev = "4737cbfc2c1a4e227e42d095c49ab43bd8d7b64a";
|
||||
hash = "sha256-5vPCtjUiFSI/Ix5dbGmR3TGQsYIwWAUHMwx8yH6HXac=";
|
||||
rev = "c852b726deb5344ea3637332722a7c93f3858d60";
|
||||
hash = "sha256-RoOkINI+ahepAbgwdkcl1iI9XGI/gYXWiH0J9Eb90pg=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/linux-rust";
|
||||
@@ -35,46 +35,31 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
libpulseaudio
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dbus
|
||||
libpulseaudio
|
||||
gtk4
|
||||
libadwaita
|
||||
glib
|
||||
bluez
|
||||
wayland
|
||||
libxkbcommon
|
||||
expat
|
||||
fontconfig
|
||||
freetype
|
||||
freetype.dev
|
||||
libGL
|
||||
vulkan-loader
|
||||
pkg-config
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXi
|
||||
gsettings-desktop-schemas
|
||||
xorg.libXrandr
|
||||
wayland
|
||||
libxkbcommon
|
||||
];
|
||||
|
||||
# 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 XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
||||
--set GDK_BACKEND "wayland,x11"
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/librepods --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user