Commit 541cb717 authored by lucasew's avatar lucasew
Browse files

cockpit: properly wrap libexec/cockpit-askpass



Signed-off-by: default avatarlucasew <lucas59356@gmail.com>
parent d74ba487
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -165,8 +165,11 @@ stdenv.mkDerivation (finalAttrs: {
      } \
      --run 'cd $(mktemp -d)'

    wrapProgram $out/bin/cockpit-bridge \
    for binary in $out/bin/cockpit-bridge $out/libexec/cockpit-askpass; do
      chmod +x $binary
      wrapProgram $binary \
        --prefix PYTHONPATH : $out/${python3Packages.python.sitePackages}
    done

    substituteInPlace $out/${python3Packages.python.sitePackages}/cockpit/_vendor/systemd_ctypes/libsystemd.py \
      --replace-warn libsystemd.so.0 ${systemd}/lib/libsystemd.so.0