Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
I was quite inexperienced with Nix/NixOS when I wrote this expression a couple of months ago. This PR cleans up the expression to be more consistent with other Nix expressions.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)Changes:
$out/opt/unigine/valley
to$out/lib/unigine/valley
.There are a few other things that I'd like to fix in the near future, but need some more input:
${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2
. Do I need to use a different ELF interpreter for 32-bit ELFs? If so, what path can it be found at? Alternatively, is choosing an appropriate ELF interpreter already handled somewhere else in nixpkgs, so I can just use something along the lines of${stdenv.elfInterpreter}
instead?libGL.so.1
on that system. Is there a built in way to pick the right directory to add toLD_LIBRARY_PATH
for this, or does this expression need to do the logic itself?