Unverified Commit fe8cdc34 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #302852 from Aleksanaa/pomodoro

pomodoro-gtk: init at 1.4.1
parents a0c9e3ae c495c40f
Loading
Loading
Loading
Loading
+63 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, gjs
, gobject-introspection
, blueprint-compiler
, wrapGAppsHook4
, desktop-file-utils
, libadwaita
, libgda6
, gsound
, gst_all_1
, libportal-gtk4
}:

stdenv.mkDerivation {
  pname = "pomodoro-gtk";
  version = "1.4.1";

  src = fetchFromGitLab {
    owner = "idevecore";
    repo = "pomodoro";
    rev = "44b724557539084991f3eb55b9593053a2c73eba"; # author didn't make a tag
    fetchSubmodules = true;
    hash = "sha256-krVRVMrrzuqPY/3P9dCz7rVCCW7/j5cpT95XniGpBEs=";
  };

  postPatch = ''
    patchShebangs --build troll/gjspack/bin/gjspack
  '';

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    gjs # runtime for gjspack
    gobject-introspection
    blueprint-compiler
    wrapGAppsHook4
    desktop-file-utils
  ];

  buildInputs = [
    gjs
    libadwaita
    libgda6
    gsound
    gst_all_1.gst-plugins-base
    libportal-gtk4
  ];

  meta = {
    description = "A simple and intuitive timer application (also named Planytimer)";
    homepage = "https://gitlab.com/idevecore/pomodoro";
    license = lib.licenses.gpl3Plus;
    mainProgram = "pomodoro";
    maintainers = with lib.maintainers; [ aleksana ];
    platforms = lib.platforms.unix;
  };
}