spacefrogg-overlay/x-plane/ortho4XPWrapper.nix

13 lines
440 B
Nix

{ writeScriptBin, lib, python3, nvidia-texture-tools, p7zip, gdal, freeglut
, orthoPathStr }:
let
myPy = (python3.withPackages (ps: with ps; [
requests pyproj numpy gdal shapely Rtree pillow tkinter ]));
in writeScriptBin "ortho4XP" ''
: ''${ORTHOPATH:=${orthoPathStr}}
PATH="${lib.makeBinPath [ myPy nvidia-texture-tools p7zip gdal freeglut ]}:$PATH"
export ORTHOPATH PATH
cd "$ORTHOPATH"
exec python Ortho4XP_*.py "$@"
''