Unverified Commit 1ea3a2e9 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

alpaca: 8.2.2 -> 8.3.1 (#460830)

parents d3ca3185 50afa26c
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -20,6 +20,9 @@
  libportal,
  webkitgtk_6_0,
  pipewire,
  glib-networking,
  bash,
  fetchpatch,
}:

let
@@ -31,16 +34,29 @@ let
in
pythonPackages.buildPythonApplication rec {
  pname = "alpaca";
  version = "8.2.2";
  version = "8.3.1";
  pyproject = false; # Built with meson

  src = fetchFromGitHub {
    owner = "Jeffser";
    repo = "Alpaca";
    tag = version;
    hash = "sha256-i1qNLV+oKkZlS/v8jfJJc67lJBuW6j2Uz93vb1StD6g=";
    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
@@ -60,6 +76,7 @@ pythonPackages.buildPythonApplication rec {
    libportal
    webkitgtk_6_0
    pipewire # pipewiresrc
    glib-networking
  ];

  dependencies =