Unverified Commit 734490b2 authored by Gergő Gutyina's avatar Gergő Gutyina Committed by GitHub
Browse files

hushboard: use --replace-fail in postPatch substitutions (#460837)

parents df23a3ad 74615ad8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -54,9 +54,9 @@ python3Packages.buildPythonApplication {

  postPatch = ''
    substituteInPlace hushboard/_pulsectl.py \
      --replace "ctypes.util.find_library('libpulse') or 'libpulse.so.0'" "'${libpulseaudio}/lib/libpulse.so.0'"
      --replace-fail "ctypes.util.find_library('libpulse') or 'libpulse.so.0'" "'${libpulseaudio}/lib/libpulse.so.0'"
    substituteInPlace snap/gui/hushboard.desktop \
      --replace "\''${SNAP}/hushboard/icons/hushboard.svg" "hushboard"
      --replace-fail "\''${SNAP}/hushboard/icons/hushboard.svg" "hushboard"
  '';

  postInstall = ''