Unverified Commit 654d1888 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

pdal: fix and enable strictDeps (#394559)

parents 4c0fd6a5 d894b799
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -65,6 +65,8 @@ stdenv.mkDerivation (finalAttrs: {
      libe57format
    ];

  strictDeps = true;

  cmakeFlags = [
    "-DBUILD_PLUGIN_E57=${if enableE57 then "ON" else "OFF"}"
    "-DBUILD_PLUGIN_HDF=ON"
@@ -112,6 +114,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
@@ -120,6 +126,10 @@ stdenv.mkDerivation (finalAttrs: {
    runHook postCheck
  '';

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

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