Files
2025-09-23 22:01:14 +02:00

38 lines
821 B
Nix

# Installation script for Nix/NixOS
# Builds the steam redirector if it doesn't exist already and then launches the install.sh
# Run with nix-shell
# Requires the Nix package manager
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
buildInputs = with pkgs; [
# dependencies for the installer
bash
curl
zenity
p7zip
jq
protontricks
# dependencies to build the steam redirector
gcc
gnumake
pkgsCross.mingwW64.stdenv.cc
];
shell = pkgs.bashInteractive;
shellHook = ''
# don't build the steam redirector again if it's already there
if ! [ -f ./steam-redirector/main.exe ]; then
cd steam-redirector
make main.exe
cd ..
fi
./install.sh
'';
}