nixpkgs/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix

45 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, gnome3, glib, gtk3, pango, wrapGAppsHook, python3
2019-02-13 22:47:50 +01:00
, gobject-introspection, gjs, libunistring, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop }:
stdenv.mkDerivation rec {
name = "gnome-characters-${version}";
version = "3.30.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-characters/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp";
};
2018-03-14 19:37:33 +01:00
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
passthru = {
2018-03-14 01:47:20 +01:00
updateScript = gnome3.updateScript {
packageName = "gnome-characters";
attrPath = "gnome3.gnome-characters";
};
};
nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook python3 gobject-introspection ];
buildInputs = [
2019-02-13 22:47:50 +01:00
glib gtk3 gjs pango gsettings-desktop-schemas
adwaita-icon-theme libunistring
# typelib
2019-02-13 22:47:50 +01:00
gnome-desktop
];
2018-03-14 14:14:11 +01:00
mesonFlags = [
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/services"
];
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Design/Apps/CharacterMap;
description = "Simple utility application to find and insert unusual characters";
maintainers = gnome3.maintainers;
license = licenses.gpl2;
platforms = platforms.linux;
};
}