···11+diff --git a/SConstruct b/SConstruct
22+index 48fd080..419b40d 100644
33+--- a/SConstruct
44++++ b/SConstruct
55+@@ -1,7 +1,7 @@
66+ import os
77+88+ # Load any environment variables that alter the build.
99+-env = Environment()
1010++env = Environment(ENV = os.environ)
1111+ if 'CCFLAGS' in os.environ:
1212+ env.Append(CCFLAGS = os.environ['CCFLAGS'])
1313+ if 'CXXFLAGS' in os.environ:
1414+@@ -55,7 +55,7 @@ sky = env.Program("endless-sky", Glob("build/" + env["mode"] + "/*.cpp"))
1515+1616+1717+ # Install the binary:
1818+-env.Install("$DESTDIR$PREFIX/games", sky)
1919++env.Install("$DESTDIR$PREFIX/bin", sky)
2020+2121+ # Install the desktop file:
2222+ env.Install("$DESTDIR$PREFIX/share/applications", "endless-sky.desktop")
2323+diff --git a/source/Files.cpp b/source/Files.cpp
2424+index c8c8957..d196459 100644
2525+--- a/source/Files.cpp
2626++++ b/source/Files.cpp
2727+@@ -114,15 +114,9 @@ void Files::Init(const char * const *argv)
2828+ if(resources.back() != '/')
2929+ resources += '/';
3030+ #if defined __linux__ || defined __FreeBSD__ || defined __DragonFly__
3131+- // Special case, for Linux: the resource files are not in the same place as
3232+- // the executable, but are under the same prefix (/usr or /usr/local).
3333+- static const string LOCAL_PATH = "/usr/local/";
3434+- static const string STANDARD_PATH = "/usr/";
3535+- static const string RESOURCE_PATH = "share/games/endless-sky/";
3636+- if(!resources.compare(0, LOCAL_PATH.length(), LOCAL_PATH))
3737+- resources = LOCAL_PATH + RESOURCE_PATH;
3838+- else if(!resources.compare(0, STANDARD_PATH.length(), STANDARD_PATH))
3939+- resources = STANDARD_PATH + RESOURCE_PATH;
4040++ // Workaround for NixOS. Not sure how to proceed with other OSes, feedback
4141++ // is welcome.
4242++ resources += "../share/games/endless-sky/";
4343+ #elif defined __APPLE__
4444+ // Special case for Mac OS X: the resources are in ../Resources relative to
4545+ // the folder the binary is in.