gromit-mpx: 1.6.0 -> 1.7.0, refactor (#343538)

This commit is contained in:
Aleksana 2024-10-29 18:07:20 +08:00 committed by GitHub
commit 14164a68eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 70 additions and 44 deletions

View File

@ -0,0 +1,70 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
gtk3,
glib,
pcre,
libappindicator-gtk3,
libpthreadstubs,
xorg,
libxkbcommon,
libepoxy,
at-spi2-core,
dbus,
libdbusmenu,
lz4,
wrapGAppsHook3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gromit-mpx";
version = "1.7.0";
src = fetchFromGitHub {
owner = "bk138";
repo = "gromit-mpx";
rev = finalAttrs.version;
hash = "sha256-jHw4V2ZvfpT3PUihe/O+9BPsv+udFg5seMbYmxOz8Yk=";
};
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook3
];
buildInputs = [
gtk3
glib
pcre
libappindicator-gtk3
libpthreadstubs
xorg.libXdmcp
libxkbcommon
libepoxy
at-spi2-core
dbus
libdbusmenu
lz4
];
meta = with lib; {
description = "Desktop annotation tool";
longDescription = ''
Gromit-MPX (GRaphics Over MIscellaneous Things) is a small tool
to make annotations on the screen.
'';
homepage = "https://github.com/bk138/gromit-mpx";
changelog = "https://github.com/bk138/gromit-mpx/blob/${finalAttrs.version}/NEWS.md";
maintainers = with maintainers; [
pjones
gepbird
];
platforms = platforms.linux;
license = licenses.gpl2Plus;
mainProgram = "gromit-mpx";
};
})

View File

@ -1,39 +0,0 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, gtk, glib, pcre, libappindicator, libpthreadstubs, xorg
, libxkbcommon, libepoxy, at-spi2-core, dbus, libdbusmenu
, wrapGAppsHook3
}:
stdenv.mkDerivation rec {
pname = "gromit-mpx";
version = "1.6.0";
src = fetchFromGitHub {
owner = "bk138";
repo = "gromit-mpx";
rev = version;
sha256 = "sha256-olDQGw0qDWwXpqRopVoEPDXLRpFiiBo+/jiVeL7R6QA=";
};
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook3 ];
buildInputs = [
gtk glib pcre libappindicator libpthreadstubs
xorg.libXdmcp libxkbcommon libepoxy at-spi2-core
dbus libdbusmenu
];
meta = with lib; {
description = "Desktop annotation tool";
longDescription = ''
Gromit-MPX (GRaphics Over MIscellaneous Things) is a small tool
to make annotations on the screen.
'';
homepage = "https://github.com/bk138/gromit-mpx";
maintainers = with maintainers; [ pjones ];
platforms = platforms.linux;
license = licenses.gpl2Plus;
mainProgram = "gromit-mpx";
};
}

View File

@ -8127,11 +8127,6 @@ with pkgs;
groff = callPackage ../tools/text/groff { }; groff = callPackage ../tools/text/groff { };
gromit-mpx = callPackage ../tools/graphics/gromit-mpx {
gtk = gtk3;
libappindicator = libappindicator-gtk3;
};
gron = callPackage ../development/tools/gron { }; gron = callPackage ../development/tools/gron { };
groonga = callPackage ../servers/search/groonga { }; groonga = callPackage ../servers/search/groonga { };