Loading pkgs/development/libraries/geos/default.nix +8 −3 Original line number Diff line number Diff line { lib , fetchurl , fetchpatch , stdenv , callPackage , fetchpatch , fetchurl , testers , cmake }: Loading @@ -29,7 +31,10 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; passthru.tests = { pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; }; geos = callPackage ./tests.nix { geos = finalAttrs.finalPackage; }; }; meta = with lib; { description = "C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software"; Loading pkgs/development/libraries/geos/tests.nix 0 → 100644 +15 −0 Original line number Diff line number Diff line { runCommand, geos }: let inherit (geos) pname; in runCommand "${geos}-tests" { meta.timeout = 60; } '' ${geos}/bin/geosop \ --explode \ --format wkt \ polygonize \ -a "MULTILINESTRING ((200 100, 100 100, 200 200), (200 200, 200 100), (200 200, 300 100, 200 100))" \ | grep 'POLYGON ((200 100, 100 100, 200 200, 200 100))' touch $out '' Loading
pkgs/development/libraries/geos/default.nix +8 −3 Original line number Diff line number Diff line { lib , fetchurl , fetchpatch , stdenv , callPackage , fetchpatch , fetchurl , testers , cmake }: Loading @@ -29,7 +31,10 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; passthru.tests = { pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; }; geos = callPackage ./tests.nix { geos = finalAttrs.finalPackage; }; }; meta = with lib; { description = "C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software"; Loading
pkgs/development/libraries/geos/tests.nix 0 → 100644 +15 −0 Original line number Diff line number Diff line { runCommand, geos }: let inherit (geos) pname; in runCommand "${geos}-tests" { meta.timeout = 60; } '' ${geos}/bin/geosop \ --explode \ --format wkt \ polygonize \ -a "MULTILINESTRING ((200 100, 100 100, 200 200), (200 200, 200 100), (200 200, 300 100, 200 100))" \ | grep 'POLYGON ((200 100, 100 100, 200 200, 200 100))' touch $out ''