tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gspell: Enable building on Darwin
OPNA2608
4 years ago
967beef6
301a1bd8
+50
-1
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
gspell
0001-Darwin-build-fix.patch
default.nix
+37
pkgs/development/libraries/gspell/0001-Darwin-build-fix.patch
···
1
1
+
From 2d6dd1c286eb57fbf968510318cafc94888b98de Mon Sep 17 00:00:00 2001
2
2
+
From: OPNA2608 <christoph.neidahl@gmail.com>
3
3
+
Date: Sun, 13 Jun 2021 21:56:03 +0200
4
4
+
Subject: [PATCH] Darwin build fix
5
5
+
6
6
+
---
7
7
+
gspell/Makefile.am | 7 +++++++
8
8
+
1 file changed, 7 insertions(+)
9
9
+
10
10
+
diff --git a/gspell/Makefile.am b/gspell/Makefile.am
11
11
+
index 69ee421..7c58973 100644
12
12
+
--- a/gspell/Makefile.am
13
13
+
+++ b/gspell/Makefile.am
14
14
+
@@ -95,6 +95,7 @@ nodist_libgspell_core_la_SOURCES = \
15
15
+
$(BUILT_SOURCES)
16
16
+
17
17
+
libgspell_core_la_LIBADD = \
18
18
+
+ $(GTK_MAC_LIBS) \
19
19
+
$(CODE_COVERAGE_LIBS)
20
20
+
21
21
+
libgspell_core_la_CFLAGS = \
22
22
+
@@ -161,6 +162,12 @@ gspell_private_headers += \
23
23
+
gspell_private_c_files += \
24
24
+
gspell-osx.c
25
25
+
26
26
+
+libgspell_core_la_CFLAGS += \
27
27
+
+ -xobjective-c
28
28
+
+
29
29
+
+libgspell_core_la_LDFLAGS += \
30
30
+
+ -framework Cocoa
31
31
+
+
32
32
+
endif # OS_OSX
33
33
+
34
34
+
if HAVE_INTROSPECTION
35
35
+
--
36
36
+
2.29.3
37
37
+
+13
-1
pkgs/development/libraries/gspell/default.nix
···
2
2
, fetchurl
3
3
, pkg-config
4
4
, libxml2
5
5
+
, autoreconfHook
6
6
+
, gtk-doc
5
7
, glib
6
8
, gtk3
7
9
, enchant2
···
9
11
, vala
10
12
, gobject-introspection
11
13
, gnome
14
14
+
, gtk-mac-integration
12
15
}:
13
16
14
17
stdenv.mkDerivation rec {
···
23
26
sha256 = "1pdb4gbjrs8mk6r0ipw5vxyvzav1wvkjq46kiq53r3nyznfpdfyw";
24
27
};
25
28
29
29
+
patches = [
30
30
+
# Extracted from: https://github.com/Homebrew/homebrew-core/blob/2a27fb86b08afc7ae6dff79cf64aafb8ecc93275/Formula/gspell.rb#L125-L149
31
31
+
./0001-Darwin-build-fix.patch
32
32
+
];
33
33
+
26
34
nativeBuildInputs = [
27
35
pkg-config
28
36
vala
29
37
gobject-introspection
30
38
libxml2
39
39
+
autoreconfHook
40
40
+
gtk-doc
31
41
];
32
42
33
43
buildInputs = [
34
44
glib
35
45
gtk3
36
46
icu
47
47
+
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
48
48
+
gtk-mac-integration
37
49
];
38
50
39
51
propagatedBuildInputs = [
···
53
65
homepage = "https://wiki.gnome.org/Projects/gspell";
54
66
license = licenses.lgpl21Plus;
55
67
maintainers = teams.gnome.members;
56
56
-
platforms = platforms.linux;
68
68
+
platforms = platforms.unix;
57
69
};
58
70
}