mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
gpsd: fix build in chroot
Fixes this when building with nix.useChroot = true in configuration.nix: sh: ./test_maidenhead.py: /usr/bin/env: bad interpreter: No such file or directory scons: *** [maidenhead-locator-regress] Error 126 scons: building terminated because of errors.
This commit is contained in:
parent
7ca8bd6d4f
commit
2ce7902059
@ -36,6 +36,7 @@ stdenv.mkDerivation rec {
|
||||
# 'chrpath' is used to be able to run the tests from the source tree, but
|
||||
# we use $LD_LIBRARY_PATH instead.
|
||||
buildPhase = ''
|
||||
patchShebangs .
|
||||
mkdir -p "$out"
|
||||
sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonFull.python.libPrefix}/site-packages\"|" -i SConstruct
|
||||
scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \
|
||||
|
Loading…
Reference in New Issue
Block a user