Skip to content

Instantly share code, notes, and snippets.

@enolan
Created March 2, 2019 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enolan/5d3ae0f08d7d30aa187b0dfdd811f45c to your computer and use it in GitHub Desktop.
Save enolan/5d3ae0f08d7d30aa187b0dfdd811f45c to your computer and use it in GitHub Desktop.
Nix derivation for RimWorld
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "Rimworld-2150";
src = requireFile {
name = "RimWorld1-0-2150Linux.zip";
sha256 = "41f50499a8e39d11fa1eebfc3c5ae3e12a064b92f5a8af55680373b0aed6d81c";
message = "dude download the thing";
};
buildInputs = [autoPatchelfHook unzip gcc-unwrapped gtk2-x11 gdk_pixbuf glib];# libglvnd
runtimeDependencies = [alsaLib xlibs.libX11 xlibs.libXext];
unpackPhase = "unzip $src || true"; # The zip file is corrupted due to locale issues I think?
installPhase = "cp -r RimWorld2150Linux $out";
fixupPhase = "chmod +x $out/RimWorld2150Linux.x86* && fixupPhase";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment