Unverified Commit c69533db authored by Bobby Rong's avatar Bobby Rong
Browse files
parent c1392fba
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -12,24 +12,27 @@
, glib
, gtk3
, gtk4
, gtksourceview4
, libadwaita
, libhandy
, webkitgtk
, webkitgtk_4_1
, webkitgtk_6_0
, nix-update-script
}:

python3.pkgs.buildPythonApplication rec {
  pname = "cambalache";
  version = "0.10.3";
  version = "0.12.1";

  format = "other";

  # Did not fetch submodule since it is only for tests we don't run.
  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
    owner = "jpu";
    repo = pname;
    rev = version;
    sha256 = "sha256-Xm8h3BBRibdLCeI/OeprF5dCCiNrfJCg7aE24uleCds=";
    sha256 = "sha256-kGCpccWIhaeWrzLlrDI7Vzd0KuAIKxvLrDuSqWtpSLU=";
  };

  nativeBuildInputs = [
@@ -51,7 +54,9 @@ python3.pkgs.buildPythonApplication rec {
    glib
    gtk3
    gtk4
    webkitgtk
    gtksourceview4
    webkitgtk_4_1
    webkitgtk_6_0
    # For extra widgets support.
    libadwaita
    libhandy
@@ -63,7 +68,7 @@ python3.pkgs.buildPythonApplication rec {
  postPatch = ''
    patchShebangs postinstall.py
    # those programs are used at runtime not build time
    # https://gitlab.gnome.org/jpu/cambalache/-/blob/main/meson.build#L79-80
    # https://gitlab.gnome.org/jpu/cambalache/-/blob/0.12.1/meson.build#L79-80
    substituteInPlace ./meson.build \
      --replace "find_program('broadwayd', required: true)" "" \
      --replace "find_program('gtk4-broadwayd', required: true)" ""