mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
19 lines
359 B
Nix
19 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
|
|
''
|