about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/tepl
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/tepl')
-rw-r--r--nixpkgs/pkgs/development/libraries/tepl/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/tepl/default.nix b/nixpkgs/pkgs/development/libraries/tepl/default.nix
new file mode 100644
index 000000000000..796810ade97a
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/tepl/default.nix
@@ -0,0 +1,69 @@
+{ lib, stdenv
+, fetchurl
+, meson
+, mesonEmulatorHook
+, ninja
+, amtk
+, gnome
+, gobject-introspection
+, gtk3
+, gtksourceview4
+, icu
+, pkg-config
+, gtk-doc
+, docbook-xsl-nons
+}:
+
+stdenv.mkDerivation rec {
+  pname = "tepl";
+  version = "6.4.0";
+
+  outputs = [ "out" "dev" "devdoc" ];
+
+  src = fetchurl {
+    url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
+    sha256 = "XlayBmnQzwX6HWS1jIw0LFkVgSLcUYEA0JPVnfm4cyE=";
+  };
+
+  strictDeps = true;
+  nativeBuildInputs = [
+    meson
+    ninja
+    gobject-introspection
+    pkg-config
+    gtk-doc
+    docbook-xsl-nons
+  ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
+    mesonEmulatorHook
+  ];
+
+  buildInputs = [
+    icu
+  ];
+
+  propagatedBuildInputs = [
+    amtk
+    gtksourceview4
+    gtk3
+  ];
+
+  doCheck = false;
+  # TODO: one test fails because of
+  # (./test-file-metadata:20931): Tepl-WARNING **: 14:41:36.942: GVfs metadata
+  # is not supported. Fallback to TeplMetadataManager. Either GVfs is not
+  # correctly installed or GVfs metadata are not supported on this platform. In
+  # the latter case, you should configure Tepl with --disable-gvfs-metadata.
+
+  passthru.updateScript = gnome.updateScript {
+    packageName = pname;
+    versionPolicy = "odd-unstable";
+  };
+
+  meta = with lib; {
+    homepage = "https://wiki.gnome.org/Projects/Tepl";
+    description = "Text editor product line";
+    maintainers = [ maintainers.manveru ];
+    license = licenses.lgpl3Plus;
+    platforms = platforms.linux;
+  };
+}