Merge pull request #211086 from bobby285271/upd/xneur-enchant2

xneur: build with enchant2, enchant1: remove
This commit is contained in:
Bobby Rong
2023-01-20 12:15:33 +08:00
committed by GitHub
4 changed files with 44 additions and 39 deletions
+42 -10
View File
@@ -1,9 +1,24 @@
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, intltool, xorg, pcre, gst_all_1, glib
, xosd, libnotify, enchant, wrapGAppsHook, gdk-pixbuf }:
{ stdenv
, lib
, fetchurl
, fetchpatch
, autoreconfHook
, intltool
, pkg-config
, wrapGAppsHook
, enchant
, gdk-pixbuf
, glib
, gst_all_1
, libnotify
, pcre
, xorg
, xosd
}:
stdenv.mkDerivation {
pname = "xneur";
version = "0.20.0";
pname = "xneur";
version = "0.20.0";
src = fetchurl {
url = "https://github.com/AndrewCrewKuznetsov/xneur-devel/raw/f66723feb272c68f7c22a8bf0dbcafa5e3a8a5ee/dists/0.20.0/xneur_0.20.0.orig.tar.gz";
@@ -11,14 +26,26 @@ stdenv.mkDerivation {
};
nativeBuildInputs = [
pkg-config intltool wrapGAppsHook
autoreconfHook
intltool
pkg-config
wrapGAppsHook
];
buildInputs = [
xorg.libX11 xorg.libXtst pcre gst_all_1.gstreamer glib
xosd xorg.libXext xorg.libXi libnotify
enchant gdk-pixbuf
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
enchant
gdk-pixbuf
glib
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gstreamer
libnotify
pcre
xorg.libX11
xorg.libXext
xorg.libXi
xorg.libXtst
xosd
];
patches = [
@@ -27,10 +54,15 @@ stdenv.mkDerivation {
url = "https://salsa.debian.org/debian/xneur/-/raw/da38ad9c8e1bf4e349f5ed4ad909f810fdea44c9/debian/patches/gcc-10.patch";
sha256 = "0pc17a4sdrnrc4z7gz28889b9ywqsm5mzm6m41h67j2f5zh9k3fy";
})
(fetchpatch {
name = "enchant2.patch";
url = "https://salsa.debian.org/debian/xneur/-/raw/695b0fea56cde4ff6cf0f3988218c5cb9d7ff5ae/debian/patches/enchant2.patch";
sha256 = "02a3kkfzdvs5f8dfm6j5x3jcn5j8qah9ykfymp6ffqsf4fijp65n";
})
];
postPatch = ''
sed -e 's@for xosd_dir in@for xosd_dir in ${xosd} @' -i configure
sed -e 's@for xosd_dir in@for xosd_dir in ${xosd} @' -i configure.ac
'';
meta = with lib; {
@@ -1,24 +0,0 @@
{ lib, stdenv, fetchurl, aspell, pkg-config, glib, hunspell, hspell }:
stdenv.mkDerivation rec {
version = "1.6.1";
pname = "enchant";
src = fetchurl {
url = "https://github.com/AbiWord/${pname}/releases/download/${pname}-1-6-1/${pname}-${version}.tar.gz";
sha256 = "1xg3m7mniyqyff8qv46jbfwgchb6di6qxdjnd5sfir7jzv0dkw5y";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ aspell glib hunspell hspell ];
meta = with lib; {
description = "Generic spell checking library";
homepage = "https://abiword.github.io/enchant";
platforms = platforms.unix;
badPlatforms = [ "x86_64-darwin" ];
license = licenses.lgpl21;
# never built on aarch64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin && stdenv.isAarch64;
};
}
+1
View File
@@ -420,6 +420,7 @@ mapAliases ({
emacsWithPackages = emacs.pkgs.withPackages; # Added 2020-12-18
enblendenfuse = throw "'enblendenfuse' has been renamed to/replaced by 'enblend-enfuse'"; # Converted to throw 2022-02-22
enchant1 = throw "enchant1 has been removed from nixpkgs, as it was unmaintained"; # Added 2023-01-18
encryptr = throw "encryptr was removed because it reached end of life"; # Added 2022-02-06
envdir = throw "envdir has been dropped due to the lack of maintenance from upstream since 2018"; # Added 2022-06-03
envelope = throw "envelope has been removed from nixpkgs, as it was unmaintained"; # Added 2021-08-05
+1 -5
View File
@@ -19298,8 +19298,6 @@ with pkgs;
emanote = haskell.lib.compose.justStaticExecutables haskellPackages.emanote;
enchant1 = callPackage ../development/libraries/enchant/1.x.nix { };
enchant2 = callPackage ../development/libraries/enchant/2.x.nix { };
enchant = enchant2;
@@ -33771,9 +33769,7 @@ with pkgs;
xmind = callPackage ../applications/misc/xmind { };
xneur = callPackage ../applications/misc/xneur {
enchant = enchant1;
};
xneur = callPackage ../applications/misc/xneur { };
gxneur = callPackage ../applications/misc/gxneur {
inherit (gnome2) libglade GConf;