nixpkgs-suyu/pkgs/applications/gis/grass/tests.nix
2023-07-02 23:36:36 +02:00

18 lines
359 B
Nix

{ runCommand, grass }:
let
inherit (grass) pname version;
in
runCommand "${pname}-tests" { meta.timeout = 60; }
''
HOME=$(mktemp -d)
${grass}/bin/grass --tmp-location EPSG:3857 --exec g.version \
| grep 'GRASS ${version}'
${grass}/bin/grass --tmp-location EPSG:3857 --exec g.mapset -l \
| grep 'PERMANENT'
touch $out
''