2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, intltool, fetchFromGitLab, pkgconfig, gtk3, adwaita-icon-theme
|
2018-08-08 17:08:58 +02:00
|
|
|
, glib, desktop-file-utils, gtk-doc, autoconf, automake, libtool
|
|
|
|
, wrapGAppsHook, gnome3, itstool, libxml2, yelp-tools
|
|
|
|
, docbook_xsl, docbook_xml_dtd_412, gsettings-desktop-schemas
|
2018-12-02 12:41:15 +01:00
|
|
|
, callPackage, unzip, gobject-introspection }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-07-14 15:51:42 +02:00
|
|
|
let
|
|
|
|
unicode-data = callPackage ./unicode-data.nix {};
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-03-08 01:07:36 +01:00
|
|
|
pname = "gucharmap";
|
|
|
|
version = "12.0.1";
|
2018-07-14 15:51:42 +02:00
|
|
|
|
2018-08-08 17:08:58 +02:00
|
|
|
outputs = [ "out" "lib" "dev" "devdoc" ];
|
|
|
|
|
2018-07-14 15:51:42 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
2019-03-08 01:07:36 +01:00
|
|
|
repo = pname;
|
2018-07-14 15:51:42 +02:00
|
|
|
rev = version;
|
2019-03-08 01:07:36 +01:00
|
|
|
sha256 = "0si3ymyfzc5v7ly0dmcs3qgw2wp8cyasycq5hmcr8frl09lr6gkw";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-12-13 09:54:08 +01:00
|
|
|
nativeBuildInputs = [
|
2018-08-08 17:08:58 +02:00
|
|
|
pkgconfig wrapGAppsHook unzip intltool itstool
|
|
|
|
autoconf automake libtool gtk-doc docbook_xsl docbook_xml_dtd_412
|
2018-12-02 12:41:15 +01:00
|
|
|
yelp-tools libxml2 desktop-file-utils gobject-introspection
|
2017-12-13 09:54:08 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-02-13 22:47:50 +01:00
|
|
|
buildInputs = [ gtk3 glib gsettings-desktop-schemas adwaita-icon-theme ];
|
2017-09-28 02:27:11 +02:00
|
|
|
|
2018-07-14 15:51:42 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-unicode-data=${unicode-data}"
|
2018-08-08 17:08:58 +02:00
|
|
|
"--enable-gtk-doc"
|
2018-07-14 15:51:42 +02:00
|
|
|
];
|
2017-09-28 02:27:11 +02:00
|
|
|
|
2018-07-14 15:51:42 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs gucharmap/gen-guch-unicode-tables.pl
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
2019-03-08 01:07:36 +01:00
|
|
|
packageName = pname;
|
2018-07-14 15:51:42 +02:00
|
|
|
};
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GNOME Character Map, based on the Unicode Character Database";
|
2018-07-14 15:51:42 +02:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Gucharmap;
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl3;
|
2018-07-14 15:51:42 +02:00
|
|
|
maintainers = gnome3.maintainers;
|
2016-09-18 21:35:23 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|