gucharmap: 10.0.0 → 11.0.1

This commit is contained in:
Jan Tojnar 2018-07-14 15:51:42 +02:00
parent 5011ef2b7a
commit fccbb2a9e6
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 48 additions and 33 deletions

View File

@ -1,41 +1,55 @@
{ stdenv, intltool, fetchurl, pkgconfig, gtk3, defaultIconTheme { stdenv, intltool, fetchFromGitLab, pkgconfig, gtk3, defaultIconTheme
, glib, desktop-file-utils, bash, appdata-tools , glib, desktop-file-utils, bash, appdata-tools, gtk-doc, autoconf, automake, libtool
, wrapGAppsHook, gnome3, itstool, libxml2 , wrapGAppsHook, gnome3, itstool, libxml2
, callPackage, unzip, gobjectIntrospection }: , callPackage, unzip, gobjectIntrospection }:
stdenv.mkDerivation rec { let
unicode-data = callPackage ./unicode-data.nix {};
in stdenv.mkDerivation rec {
name = "gucharmap-${version}"; name = "gucharmap-${version}";
version = "10.0.4"; version = "11.0.1";
src = fetchurl { src = fetchFromGitLab {
url = "mirror://gnome/sources/gucharmap/${gnome3.versionBranch version}/${name}.tar.xz"; domain = "gitlab.gnome.org";
sha256 = "00gh3lll6wykd2qg1lrj05a4wvscsypmrx7rpb6jsbvb4scnh9mv"; owner = "GNOME";
repo = "gucharmap";
rev = version;
sha256 = "13iw4fa6mv8vi8bkwk0bbhamnzbaih0c93p4rh07khq6mxa6hnpi";
}; };
passthru = {
updateScript = gnome3.updateScript { packageName = "gucharmap"; };
};
doCheck = true;
preConfigure = "patchShebangs gucharmap/gen-guch-unicode-tables.pl";
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig wrapGAppsHook unzip intltool itstool appdata-tools pkgconfig wrapGAppsHook unzip intltool itstool appdata-tools
autoconf automake libtool gtk-doc
gnome3.yelp-tools libxml2 desktop-file-utils gobjectIntrospection gnome3.yelp-tools libxml2 desktop-file-utils gobjectIntrospection
]; ];
buildInputs = [ gtk3 glib gnome3.gsettings-desktop-schemas defaultIconTheme ]; buildInputs = [ gtk3 glib gnome3.gsettings-desktop-schemas defaultIconTheme ];
unicode-data = callPackage ./unicode-data.nix {}; configureFlags = [
"--with-unicode-data=${unicode-data}"
];
configureFlags = "--with-unicode-data=${unicode-data}"; 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; { meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Gucharmap;
description = "GNOME Character Map, based on the Unicode Character Database"; description = "GNOME Character Map, based on the Unicode Character Database";
maintainers = gnome3.maintainers; homepage = https://wiki.gnome.org/Apps/Gucharmap;
license = licenses.gpl3; license = licenses.gpl3;
maintainers = gnome3.maintainers;
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -1,30 +1,31 @@
{ fetchurl, stdenv, gnome3 }: { fetchurl, stdenv, gnome3 }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "unicode-data-10.0.0"; name = "unicode-data-${version}";
version = "11.0.0";
srcs = [ srcs = [
(fetchurl { (fetchurl {
url = "http://www.unicode.org/Public/10.0.0/ucd/Blocks.txt"; url = "http://www.unicode.org/Public/${version}/ucd/Blocks.txt";
sha256 = "19zf2kd198mcv1paa194c1zf36hay1irbxssi35yi2pd8ad69qas"; sha256 = "0lnh9iazikpr548bd7nkaq9r3vfljfvz0rg2462prac8qxk7ni8b";
}) })
(fetchurl { (fetchurl {
url = "http://www.unicode.org/Public/10.0.0/ucd/DerivedAge.txt"; url = "http://www.unicode.org/Public/${version}/ucd/DerivedAge.txt";
sha256 = "1h9p1g0wnh686l6cqar7cmky465vwc6vjzzn1s7v0i9zcjaqkr4h"; sha256 = "0rlqqd0b1sqbzvrj29dwdizx8lyvrbfirsnn8za9lb53x5fml4gb";
}) })
(fetchurl { (fetchurl {
url = "http://www.unicode.org/Public/10.0.0/ucd/NamesList.txt"; url = "http://www.unicode.org/Public/${version}/ucd/NamesList.txt";
sha256 = "0gvpcyq852rnlqmx4y5i1by7bavvcw6rj40i54w48yc7xr3zmgd1"; sha256 = "0yr2h0nfqhirfi3bxl33z6cc94qqshlpgi06c25xh9754irqsgv8";
}) })
(fetchurl { (fetchurl {
url = "http://www.unicode.org/Public/10.0.0/ucd/Scripts.txt"; url = "http://www.unicode.org/Public/${version}/ucd/Scripts.txt";
sha256 = "0b9prz2hs6w61afqaplcxnv115f8yk4d5hn9dc5hks8nqpj28bnh"; sha256 = "1mbnvf97nwa3pvyzx9nd2wa94f8s0npg9740kic2p2ag7jmc1wz9";
}) })
(fetchurl { (fetchurl {
url = "http://www.unicode.org/Public/10.0.0/ucd/UnicodeData.txt"; url = "http://www.unicode.org/Public/${version}/ucd/UnicodeData.txt";
sha256 = "1cfak1j753zcrbgixwgppyxhm4w8vda8vxhqymi7n5ljfi6kwhjj"; sha256 = "16b0jzvvzarnlxdvs2izd5ia0ipbd87md143dc6lv6xpdqcs75s9";
}) })
(fetchurl { (fetchurl {
url = "http://www.unicode.org/Public/10.0.0/ucd/Unihan.zip"; url = "http://www.unicode.org/Public/${version}/ucd/Unihan.zip";
sha256 = "199kz6laypkvc0ykms6d7bkb571jmpds39sv2p7kd5jjm1ij08q1"; sha256 = "0cy8gxb17ksi5h4ysypk4c09z61am1svjrvg97hm5m5ccjfrs1vj";
}) })
]; ];
phases = "installPhase"; phases = "installPhase";