mirror of
https://github.com/Furglitch/modorganizer2-linux-installer.git
synced 2026-02-20 07:34:02 -05:00
38 lines
821 B
Nix
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
|
|
'';
|
|
}
|