nixpkgs/pkgs/development/libraries/tepl/default.nix
2019-11-29 13:28:51 -08:00

43 lines
1.2 KiB
Nix

{ stdenv, fetchurl
, amtk, gnome3, gtk3, gtksourceview4, libuchardet, libxml2, pkgconfig }:
let
version = "4.2.1";
pname = "tepl";
in stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0vib1ljgqwy2fhiwq8z3pcd68qy7v72l4f35p1d1w1k9z8sy677k";
};
nativeBuildInputs = [
pkgconfig
];
buildInputs = [
amtk
libxml2
gtksourceview4
libuchardet
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 = gnome3.updateScript { packageName = pname; };
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Projects/Tepl;
description = "Text editor product line";
maintainers = [ maintainers.manveru ];
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}