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
environmentVariables = {
romsDirectory = "/home/deck/Emulation/roms";
steamDirectory = "/home/deck/.local/share/Steam";
romsDirectory = "/home/admin/Emulation/roms";
steamDirectory = "/home/admin/.local/share/Steam";
};
emulators = {

View File

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

View File

@@ -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; {

View File

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