summary refs log tree commit diff
path: root/pkgs/applications/misc/xneur
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-01-18 19:08:33 +0800
committerBobby Rong <rjl931189261@126.com>2023-01-18 19:08:33 +0800
commited0995f446c83c75a4bc1c38203d6aac6c1bee2a (patch)
treee535003dab93d1235e77e7a73537c3719d7fdf83 /pkgs/applications/misc/xneur
parent564c0bebded5e073511b7feeb9c8c66612387319 (diff)
xneur: build with enchant2
We are trying to remove enchant1 from Nixpkgs. Since there is no
new release we pull the patch from debian to build this with enchant2.
Diffstat (limited to 'pkgs/applications/misc/xneur')
-rw-r--r--pkgs/applications/misc/xneur/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/misc/xneur/default.nix b/pkgs/applications/misc/xneur/default.nix
index 2f02231536dfa..eab545cf08189 100644
--- a/pkgs/applications/misc/xneur/default.nix
+++ b/pkgs/applications/misc/xneur/default.nix
@@ -2,6 +2,7 @@
 , lib
 , fetchurl
 , fetchpatch
+, autoreconfHook
 , intltool
 , pkg-config
 , wrapGAppsHook
@@ -25,6 +26,7 @@ stdenv.mkDerivation {
   };
 
   nativeBuildInputs = [
+    autoreconfHook
     intltool
     pkg-config
     wrapGAppsHook
@@ -52,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; {