nixpkgs/pkgs/desktops/gnome-3/core/gucharmap/default.nix

60 lines
1.6 KiB
Nix
Raw Normal View History

2019-02-13 22:47:50 +01:00
{ stdenv, intltool, fetchFromGitLab, fetchpatch, pkgconfig, gtk3, adwaita-icon-theme
, 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, gobject-introspection }:
2018-07-14 15:51:42 +02:00
let
unicode-data = callPackage ./unicode-data.nix {};
in stdenv.mkDerivation rec {
name = "gucharmap-${version}";
2018-09-05 02:49:55 +02:00
version = "11.0.3";
2018-07-14 15:51:42 +02:00
outputs = [ "out" "lib" "dev" "devdoc" ];
2018-07-14 15:51:42 +02:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "gucharmap";
rev = version;
2018-09-05 02:49:55 +02:00
sha256 = "1a590nxy8jdf6zxh6jdsyvhxyaz94ixx3aa1pj7gicf1aqp26vnh";
};
nativeBuildInputs = [
pkgconfig wrapGAppsHook unzip intltool itstool
autoconf automake libtool gtk-doc docbook_xsl docbook_xml_dtd_412
yelp-tools libxml2 desktop-file-utils gobject-introspection
];
2019-02-13 22:47:50 +01:00
buildInputs = [ gtk3 glib gsettings-desktop-schemas adwaita-icon-theme ];
2018-07-14 15:51:42 +02:00
configureFlags = [
"--with-unicode-data=${unicode-data}"
"--enable-gtk-doc"
2018-07-14 15:51:42 +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 {
packageName = "gucharmap";
};
};
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;
license = licenses.gpl3;
2018-07-14 15:51:42 +02:00
maintainers = gnome3.maintainers;
platforms = platforms.linux;
};
}