Skip to content

izuk/nixos-ksp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Nix Expression for Kerbal Space Program

Prerequisites

  • Only for 1.2.
  • Only on x86_64.

Building

Download the zip archive from kerbalspaceprogram.com and install it into the Nix store with:

nix-prefetch-url file:///path/to/ksp-linux-1-2.zip

If necessary, modify default.nix with the right sha256 hash.

Build with:

nix-build default.nix

or install with:

nix-env -f default.nix -i ksp-linux

Now you have KSP in the store, and KSP.x86_64 will run, but the store is read-only and KSP doesn't like that. So, copy everything into a local tree:

cp -r /nix/store/<hash>-ksp-linux-1.0.4/KSP_linux /path/to/games
chmod -R ug+w /path/to/games/KSP_linux

Go ahead and run it:

/path/to/games/KSP_linux/KSP.x86_64

The default.nix expression makes sure that the binary is linked with the right libraries. Installing it via nix-env means that those libraries won't disappear when the system is upgraded, and that if KSP works once, an upgrade won't trash those old, working libraries.

About

Nix expression for Kerbal Space Program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published