diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-03-15 23:59:44 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-03-16 00:05:58 +0100 |
commit | 2ce7902059467db3b415309bb8e877bb762b7942 (patch) | |
tree | e94ec60f2b0617ff17912b6d3ba8fa6a4a5def03 /pkgs/servers | |
parent | 7ca8bd6d4fb1f9d3054db78e1ea656d8b687b4d6 (diff) | |
download | nixlib-2ce7902059467db3b415309bb8e877bb762b7942.tar nixlib-2ce7902059467db3b415309bb8e877bb762b7942.tar.gz nixlib-2ce7902059467db3b415309bb8e877bb762b7942.tar.bz2 nixlib-2ce7902059467db3b415309bb8e877bb762b7942.tar.lz nixlib-2ce7902059467db3b415309bb8e877bb762b7942.tar.xz nixlib-2ce7902059467db3b415309bb8e877bb762b7942.tar.zst nixlib-2ce7902059467db3b415309bb8e877bb762b7942.zip |
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.
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/gpsd/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/servers/gpsd/default.nix b/pkgs/servers/gpsd/default.nix index a89f10ad8363..a52ca2b6871b 100644 --- a/pkgs/servers/gpsd/default.nix +++ b/pkgs/servers/gpsd/default.nix @@ -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} \ |