Created
March 2, 2019 21:41
-
-
Save enolan/5d3ae0f08d7d30aa187b0dfdd811f45c to your computer and use it in GitHub Desktop.
Nix derivation for RimWorld
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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