nixpkgs/pkgs/by-name/gt/gtkspell2/package.nix
quantenzitrone 3a9a26bbec
gtkspell{2,3}: move to pkgs/by-name
this shouldn't create any rebuilds
2026-01-21 00:54:16 +01:00

57 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchurl,
fetchpatch,
autoreconfHook,
docbook_xsl,
gtk-doc,
intltool,
pkg-config,
aspell,
enchant,
gtk2,
}:
stdenv.mkDerivation rec {
pname = "gtkspell";
version = "2.0.16";
src = fetchurl {
url = "mirror://sourceforge/gtkspell/${pname}-${version}.tar.gz";
sha256 = "00hdv28bp72kg1mq2jdz1sdw2b8mb9iclsp7jdqwpck705bdriwg";
};
patches = [
# Fix build with gettext 0.25
./gettext-0.25.patch
# Build with enchant 2
# https://github.com/archlinux/svntogit-packages/tree/packages/gtkspell/trunk
(fetchpatch {
url = "https://github.com/archlinux/svntogit-packages/raw/17fb30b5196db378c18e7c115f28e97b962b95ff/trunk/enchant-2.diff";
sha256 = "0d9409bnapwzwhnfpz3dvl6qalskqa4lzmhrmciazsypbw3ry5rf";
})
];
nativeBuildInputs = [
autoreconfHook
docbook_xsl
gtk2 # GLIB_GNU_GETTEXT
gtk-doc
intltool
pkg-config
];
buildInputs = [
aspell
enchant
gtk2
];
meta = {
description = "Word-processor-style highlighting and replacement of misspelled words";
homepage = "https://gtkspell.sourceforge.net";
platforms = lib.platforms.unix;
license = lib.licenses.gpl2;
};
}