Commit d894b799 authored by FliegendeWurst's avatar FliegendeWurst
Browse files

pdal: fix and enable strictDeps

parent 4534205b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -62,6 +62,8 @@ stdenv.mkDerivation (finalAttrs: {
    libe57format
  ];

  strictDeps = true;

  cmakeFlags = [
    "-DBUILD_PLUGIN_E57=${if enableE57 then "ON" else "OFF"}"
    "-DBUILD_PLUGIN_HDF=ON"
@@ -109,6 +111,10 @@ stdenv.mkDerivation (finalAttrs: {
    "pdal_app_plugin_test"
  ];

  nativeCheckInputs = [
    gdal # gdalinfo
  ];

  checkPhase = ''
    runHook preCheck
    # tests are flaky and they seem to fail less often when they don't run in
@@ -117,6 +123,10 @@ stdenv.mkDerivation (finalAttrs: {
    runHook postCheck
  '';

  postInstall = ''
    patchShebangs --update --build $out/bin/pdal-config
  '';

  passthru.tests = {
    version = testers.testVersion {
      package = finalAttrs.finalPackage;