librepods rust

This commit is contained in:
mjallen18
2026-01-09 15:49:15 -06:00
parent 994fddba66
commit ad16b47827
4 changed files with 30 additions and 45 deletions

View File

@@ -66,8 +66,8 @@
# Optional: override default paths if needed # Optional: override default paths if needed
environmentVariables = { environmentVariables = {
romsDirectory = "/home/deck/Emulation/roms"; romsDirectory = "/home/admin/Emulation/roms";
steamDirectory = "/home/deck/.local/share/Steam"; steamDirectory = "/home/admin/.local/share/Steam";
}; };
emulators = { emulators = {

View File

@@ -25,17 +25,17 @@ let
name = "steam"; name = "steam";
prep-cmd = [ prep-cmd = [
{ {
do = "${pkgs.cosmic-randr}/bin/cosmic-randr mode HDMI-A-1 1280 800"; do = "${pkgs.cosmic-randr}/bin/cosmic-randr mode HDMI-A-3 1280 800";
undo = "${pkgs.cosmic-randr}/bin/cosmic-randr mode HDMI-A-1 1920 1080"; undo = "${pkgs.cosmic-randr}/bin/cosmic-randr mode HDMI-A-3 1920 1080";
} }
{ {
do = "${pkgs.util-linux}/bin/setsid ${pkgs.steam}/bin/steam steam://open/bigpicture"; # do = ''"${pkgs.util-linux}/bin/setsid ${pkgs.steam}/bin/steam steam://open/bigpicture"'';
undo = "${pkgs.util-linux}/bin/setsid ${pkgs.steam}/bin/steam steam://close/bigpicture"; undo = ''"${pkgs.util-linux}/bin/setsid ${pkgs.steam}/bin/steam steam://close/bigpicture"'';
} }
]; ];
# detached = [ detached = [
# "${pkgs.steam}/bin/steam steam://open/bigpicture" " steam-run steam steam://open/bigpicture"
# ]; ];
exclude-global-prep-cmd = "false"; exclude-global-prep-cmd = "false";
auto-detach = "true"; auto-detach = "true";
} }
@@ -43,8 +43,8 @@ let
name = "800p Desktop"; name = "800p Desktop";
prep-cmd = [ prep-cmd = [
{ {
do = "${pkgs.cosmic-randr}/bin/cosmic-randr mode HDMI-A-1 1280 800"; do = "${pkgs.cosmic-randr}/bin/cosmic-randr mode HDMI-A-3 1280 800";
undo = "${pkgs.cosmic-randr}/bin/cosmic-randr mode HDMI-A-1 1920 1080"; undo = "${pkgs.cosmic-randr}/bin/cosmic-randr mode HDMI-A-3 1920 1080";
} }
]; ];
exclude-global-prep-cmd = "false"; exclude-global-prep-cmd = "false";

View File

@@ -4,17 +4,17 @@
fetchFromGitHub, fetchFromGitHub,
pkg-config, pkg-config,
makeWrapper, makeWrapper,
autoPatchelfHook,
dbus, dbus,
libpulseaudio, libpulseaudio,
gtk4,
libadwaita,
glib,
bluez,
wayland, wayland,
libxkbcommon, libxkbcommon,
libGL, libGL,
vulkan-loader, vulkan-loader,
xorg, xorg,
expat,
fontconfig,
freetype,
gsettings-desktop-schemas, gsettings-desktop-schemas,
}: }:
@@ -25,8 +25,8 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kavishdevar"; owner = "kavishdevar";
repo = "librepods"; repo = "librepods";
rev = "4737cbfc2c1a4e227e42d095c49ab43bd8d7b64a"; rev = "c852b726deb5344ea3637332722a7c93f3858d60";
hash = "sha256-5vPCtjUiFSI/Ix5dbGmR3TGQsYIwWAUHMwx8yH6HXac="; hash = "sha256-RoOkINI+ahepAbgwdkcl1iI9XGI/gYXWiH0J9Eb90pg=";
}; };
sourceRoot = "${src.name}/linux-rust"; sourceRoot = "${src.name}/linux-rust";
@@ -35,46 +35,31 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
libpulseaudio
autoPatchelfHook
makeWrapper makeWrapper
]; ];
buildInputs = [ buildInputs = [
dbus dbus
libpulseaudio libpulseaudio
gtk4
libadwaita
glib
bluez
wayland wayland
libxkbcommon expat
fontconfig
freetype
freetype.dev
libGL libGL
vulkan-loader pkg-config
xorg.libX11 xorg.libX11
xorg.libXcursor xorg.libXcursor
xorg.libXrandr
xorg.libXi xorg.libXi
gsettings-desktop-schemas xorg.libXrandr
wayland
libxkbcommon
]; ];
# Create wrapper script instead of wrapping in-place postFixup = ''
postInstall = '' wrapProgram $out/bin/librepods --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs}
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"
''; '';
meta = with lib; { meta = with lib; {

View File

@@ -71,7 +71,7 @@ in
apiKey = config.sops.secrets."jallen-nas/crowdsec-capi".path; apiKey = config.sops.secrets."jallen-nas/crowdsec-capi".path;
}; };
dispatcharr = { dispatcharr = {
enable = true; enable = false;
port = 9191; port = 9191;
}; };
ersatztv = { ersatztv = {