Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 stdenv,
3 lib,
4 fetchurl,
5 docbook-xsl-nons,
6 glib,
7 gobject-introspection,
8 gtk-doc,
9 meson,
10 ninja,
11 pkg-config,
12 vala,
13 mesonEmulatorHook,
14 gtk3,
15 icu,
16 enchant2,
17 gnome,
18}:
19
20stdenv.mkDerivation rec {
21 pname = "gspell";
22 version = "1.14.0";
23
24 outputs = [
25 "out"
26 "dev"
27 "devdoc"
28 ];
29
30 outputBin = "dev";
31
32 src = fetchurl {
33 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
34 sha256 = "ZOodjp7cHCW0WpIOgNr2dVnRhm/81/hDL+z+ptD+iJc=";
35 };
36
37 nativeBuildInputs = [
38 docbook-xsl-nons
39 glib # glib-mkenums
40 gobject-introspection
41 gtk-doc
42 meson
43 ninja
44 pkg-config
45 vala
46 ]
47 ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
48 mesonEmulatorHook
49 ];
50
51 buildInputs = [
52 gtk3
53 icu
54 ];
55
56 propagatedBuildInputs = [
57 # required for pkg-config
58 enchant2
59 ];
60
61 passthru = {
62 updateScript = gnome.updateScript {
63 packageName = pname;
64 versionPolicy = "none";
65 };
66 };
67
68 meta = with lib; {
69 description = "Spell-checking library for GTK applications";
70 mainProgram = "gspell-app1";
71 homepage = "https://gitlab.gnome.org/GNOME/gspell";
72 license = licenses.lgpl21Plus;
73 teams = [ teams.gnome ];
74 platforms = platforms.unix;
75 };
76}