Commit a5e11d78 authored by Martin Joerg's avatar Martin Joerg
Browse files

qgis-ltr: wrap all binaries

This is necessary to make GRASS and Python plugins usable with qgis_process.
parent ea8a9b51
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -24,13 +24,13 @@ in symlinkJoin rec {
  pythonInputs = qgis-ltr-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-ltr-unwrapped.py.pkgs);

  postBuild = ''
    # unpackPhase

    buildPythonPath "$pythonInputs"

    wrapProgram $out/bin/qgis \
    for program in $out/bin/*; do
      wrapProgram $program \
        --prefix PATH : $program_PATH \
        --set PYTHONPATH $program_PYTHONPATH
    done
  '';

  passthru = {
+5 −3
Original line number Diff line number Diff line
@@ -173,9 +173,11 @@ in mkDerivation rec {
    # the path at build time using GRASS_PREFIX.
    # Using wrapGAppsHook also prevents file dialogs from crashing the program
    # on non-NixOS.
    wrapProgram $out/bin/qgis \
    for program in $out/bin/*; do
      wrapProgram $program \
        "''${gappsWrapperArgs[@]}" \
        --prefix PATH : ${lib.makeBinPath [ grass ]}
    done
  '';

  meta = with lib; {