mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
cb597c229b
This adds a new package: OpenSpace, an open source astrovisualization project, and one of its dependencies: SOIL (Simple OpenGL Image Library). This kind of works for me, but please note that this build is not very usable for now. This is a first attempt. Also, Linux doesn't seem to be well supported upstream, hence the various patches (I will open an issue upstream to discuss them). Squashed commits: openspace: fetch upstream glm "patch" openspace: add missing dependency (libXxf86vm) soil: mesa -> mesa_noglu
50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
diff --git a/openspace.cfg b/openspace.cfg
|
|
index c86830b..e7f89d9 100755
|
|
--- a/openspace.cfg
|
|
+++ b/openspace.cfg
|
|
@@ -2,18 +2,21 @@
|
|
-- require('scripts/configuration_helper.lua')
|
|
-- which defines helper functions useful to customize the configuration
|
|
|
|
+userdir = os.getenv("HOME") .. "/.openspace/"
|
|
+os.execute("mkdir -p " .. userdir)
|
|
+
|
|
return {
|
|
-- Determines which SGCT configuration file is loaded, that is, if there rendering
|
|
-- occurs in a single window, a fisheye projection, or a dome cluster system
|
|
|
|
-- A regular 1280x720 window
|
|
- SGCTConfig = sgct.config.single{},
|
|
+ -- SGCTConfig = sgct.config.single{},
|
|
|
|
-- A regular 1920x1080 window
|
|
-- SGCTConfig = sgct.config.single{1920, 1080},
|
|
|
|
-- A windowed 1920x1080 fullscreen
|
|
- -- SGCTConfig = sgct.config.single{1920, 1080, border=false, windowPos={0,0}, shared=true, name="WV_OBS_SPOUT1"},
|
|
+ SGCTConfig = sgct.config.single{1920, 1080, border=false, windowPos={0,0}, shared=true, name="WV_OBS_SPOUT1"},
|
|
|
|
-- A 1k fisheye rendering
|
|
-- SGCTConfig = sgct.config.fisheye{1024, 1024},
|
|
@@ -53,15 +56,15 @@ return {
|
|
TASKS = "${DATA}/tasks",
|
|
WEB = "${DATA}/web",
|
|
|
|
- CACHE = "${BASE}/cache",
|
|
+ CACHE = userdir .. "cache",
|
|
CONFIG = "${BASE}/config",
|
|
- DOCUMENTATION = "${BASE}/documentation",
|
|
- LOGS = "${BASE}/logs",
|
|
+ DOCUMENTATION = userdir .. "documentation",
|
|
+ LOGS = userdir .. "logs",
|
|
MODULES = "${BASE}/modules",
|
|
SCRIPTS = "${BASE}/scripts",
|
|
SHADERS = "${BASE}/shaders",
|
|
- SYNC = "${BASE}/sync",
|
|
- TESTDIR = "${BASE}/tests"
|
|
+ SYNC = userdir .. "sync",
|
|
+ TESTDIR = userdir .. "tests"
|
|
},
|
|
Fonts = {
|
|
Mono = "${FONTS}/Bitstream-Vera-Sans-Mono/VeraMono.ttf",
|