1{ lib, stdenv
2, fetchurl
3, meson
4, mesonEmulatorHook
5, ninja
6, amtk
7, gnome
8, gobject-introspection
9, gtk3
10, gtksourceview4
11, icu
12, pkg-config
13, gtk-doc
14, docbook-xsl-nons
15}:
16
17stdenv.mkDerivation rec {
18 pname = "tepl";
19 version = "6.4.0";
20
21 outputs = [ "out" "dev" "devdoc" ];
22
23 src = fetchurl {
24 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
25 sha256 = "XlayBmnQzwX6HWS1jIw0LFkVgSLcUYEA0JPVnfm4cyE=";
26 };
27
28 strictDeps = true;
29 nativeBuildInputs = [
30 meson
31 ninja
32 gobject-introspection
33 pkg-config
34 gtk-doc
35 docbook-xsl-nons
36 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
37 mesonEmulatorHook
38 ];
39
40 buildInputs = [
41 icu
42 ];
43
44 propagatedBuildInputs = [
45 amtk
46 gtksourceview4
47 gtk3
48 ];
49
50 doCheck = false;
51 # TODO: one test fails because of
52 # (./test-file-metadata:20931): Tepl-WARNING **: 14:41:36.942: GVfs metadata
53 # is not supported. Fallback to TeplMetadataManager. Either GVfs is not
54 # correctly installed or GVfs metadata are not supported on this platform. In
55 # the latter case, you should configure Tepl with --disable-gvfs-metadata.
56
57 passthru.updateScript = gnome.updateScript {
58 packageName = pname;
59 versionPolicy = "odd-unstable";
60 };
61
62 meta = with lib; {
63 homepage = "https://wiki.gnome.org/Projects/Tepl";
64 description = "Text editor product line";
65 maintainers = [ maintainers.manveru ];
66 license = licenses.lgpl3Plus;
67 platforms = platforms.linux;
68 };
69}