nixpkgs/pkgs/development/libraries/proj/tests.nix
Ivan Mincik 44daadff50 proj: add package tests
Add simple package test by running proj CLI tool.

This change also improves derivation overriding behavior by using
`finalAttrs` function.

Co-authored-by: Robert Scott <github@humanleg.org.uk>
2022-12-13 20:19:44 +01:00

12 lines
228 B
Nix

{ runCommand, proj }:
let
inherit (proj) pname;
in
runCommand "${pname}-tests" { meta.timeout = 60; }
''
${proj}/bin/projinfo EPSG:4326 \
| grep '+proj=longlat +datum=WGS84 +no_defs +type=crs'
touch $out
''