spacefrogg-overlay/x-plane/ortho4XPWrapper.nix

13 lines
440 B
Nix
Raw Normal View History

2022-06-12 20:03:18 +02:00
{ 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 "$@"
''