gnome3.gucharmap: clean up

Clean up package, split into multiple outputs, enable devdoc.
This commit is contained in:
Jan Tojnar 2018-08-08 17:08:58 +02:00
parent 31559eb969
commit aab242e1c5
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,6 +1,7 @@
{ stdenv, intltool, fetchFromGitLab, pkgconfig, gtk3, defaultIconTheme
, glib, desktop-file-utils, appdata-tools, gtk-doc, autoconf, automake, libtool
, wrapGAppsHook, gnome3, itstool, libxml2
{ stdenv, intltool, fetchFromGitLab, fetchpatch, pkgconfig, gtk3, defaultIconTheme
, glib, desktop-file-utils, gtk-doc, autoconf, automake, libtool
, wrapGAppsHook, gnome3, itstool, libxml2, yelp-tools
, docbook_xsl, docbook_xml_dtd_412, gsettings-desktop-schemas
, callPackage, unzip, gobjectIntrospection }:
let
@ -9,6 +10,8 @@ in stdenv.mkDerivation rec {
name = "gucharmap-${version}";
version = "11.0.1";
outputs = [ "out" "lib" "dev" "devdoc" ];
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
@ -17,16 +20,26 @@ in stdenv.mkDerivation rec {
sha256 = "13iw4fa6mv8vi8bkwk0bbhamnzbaih0c93p4rh07khq6mxa6hnpi";
};
nativeBuildInputs = [
pkgconfig wrapGAppsHook unzip intltool itstool appdata-tools
autoconf automake libtool gtk-doc
gnome3.yelp-tools libxml2 desktop-file-utils gobjectIntrospection
patches = [
# Fix locale path to allow split outputs
# https://gitlab.gnome.org/GNOME/gucharmap/issues/10
(fetchpatch {
url = https://gitlab.gnome.org/GNOME/gucharmap/commit/b2b03f16aa869ac0ec1a05c55c4d4e4c4b513576.patch;
sha256 = "1543mcyz96x23m9pzx04ny15m4a2pqmiksl1y5r51k3sw4fyisci";
})
];
buildInputs = [ gtk3 glib gnome3.gsettings-desktop-schemas defaultIconTheme ];
nativeBuildInputs = [
pkgconfig wrapGAppsHook unzip intltool itstool
autoconf automake libtool gtk-doc docbook_xsl docbook_xml_dtd_412
yelp-tools libxml2 desktop-file-utils gobjectIntrospection
];
buildInputs = [ gtk3 glib gsettings-desktop-schemas defaultIconTheme ];
configureFlags = [
"--with-unicode-data=${unicode-data}"
"--enable-gtk-doc"
];
doCheck = true;