Files
nixpkgs/pkgs/by-name/gu/gummi/package.nix
2026-05-06 11:07:44 -07:00

67 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchDebianPatch,
glib,
gtk3,
gtksourceview3,
gtkspell3,
poppler,
texlive,
pkg-config,
intltool,
autoreconfHook,
wrapGAppsHook3,
}:
stdenv.mkDerivation (finalAttrs: {
version = "0.8.3";
pname = "gummi";
src = fetchFromGitHub {
owner = "alexandervdm";
repo = "gummi";
rev = finalAttrs.version;
sha256 = "sha256-71n71KjLmICp4gznd27NlbyA3kayje3hYk/cwkOXEO0=";
};
patches = [
(fetchDebianPatch {
pname = "gummi";
version = "0.8.3+really0.8.3";
debianRevision = "6";
patch = "0002-build-with-gcc-15.patch";
hash = "sha256-YNOVgZHJIVy7y60FOZRI8N8qxoOkUsResLo0PNZ0dkY=";
})
];
nativeBuildInputs = [
pkg-config
intltool
autoreconfHook
wrapGAppsHook3
];
buildInputs = [
glib
gtksourceview3
gtk3
gtkspell3
poppler
texlive.bin.core # needed for synctex
];
postInstall = ''
install -Dpm644 COPYING $out/share/licenses/$name/COPYING
'';
meta = {
homepage = "https://gummi.app";
description = "Simple LaTex editor for GTK users";
mainProgram = "gummi";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ flokli ];
platforms = with lib.platforms; linux;
};
})