Commit 50afa26c authored by Gliczy's avatar Gliczy
Browse files

alpaca: fix integrated terminal

parent f53dac85
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@
  webkitgtk_6_0,
  pipewire,
  glib-networking,
  bash,
  fetchpatch,
}:

let
@@ -42,6 +44,19 @@ pythonPackages.buildPythonApplication rec {
    hash = "sha256-X3kITzZBcpN3kYDiT2PTu9UvuWQ/XSq3tVYYMa1btnY=";
  };

  # TODO: remove in the next release
  patches = [
    (fetchpatch {
      url = "https://patch-diff.githubusercontent.com/raw/Jeffser/Alpaca/pull/1043.patch";
      hash = "sha256-y0NiT0FvyB/fKvi+5E0hSzDs1Ds2ydqRO1My83bnmYY=";
    })
  ];

  postPatch = ''
    substituteInPlace src/widgets/activities/terminal.py \
      --replace-fail "['bash', '-c', ';\n'.join(self.prepare_script())]," "['${bash}/bin/bash', '-c', ';\n'.join(self.prepare_script())],"
  '';

  nativeBuildInputs = [
    appstream
    meson