gnome3.gnome-characters: stylize expression
This commit is contained in:
parent
d21e4a9514
commit
422d20e4f1
@ -1,39 +1,59 @@
|
|||||||
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, gnome3, glib, gtk3, pango, wrapGAppsHook, python3
|
{ stdenv
|
||||||
, gobject-introspection, gjs, libunistring, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop }:
|
, fetchurl
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkgconfig
|
||||||
|
, gettext
|
||||||
|
, gnome3
|
||||||
|
, glib
|
||||||
|
, gtk3
|
||||||
|
, pango
|
||||||
|
, wrapGAppsHook
|
||||||
|
, python3
|
||||||
|
, gobject-introspection
|
||||||
|
, gjs
|
||||||
|
, libunistring
|
||||||
|
, gsettings-desktop-schemas
|
||||||
|
, adwaita-icon-theme
|
||||||
|
, gnome-desktop
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gnome-characters-${version}";
|
pname = "gnome-characters";
|
||||||
version = "3.32.1";
|
version = "3.32.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gnome-characters/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/gnome-characters/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1mpg125x9k879ryg8xgbm9w1amx6b3iq9sqv7xfii7kzaanjb4js";
|
sha256 = "1mpg125x9k879ryg8xgbm9w1amx6b3iq9sqv7xfii7kzaanjb4js";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
gettext
|
||||||
|
gobject-introspection
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkgconfig
|
||||||
|
python3
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
adwaita-icon-theme
|
||||||
|
gjs
|
||||||
|
glib
|
||||||
|
gnome-desktop # for typelib
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
gtk3
|
||||||
|
libunistring
|
||||||
|
pango
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x meson_post_install.py # patchShebangs requires executable file
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
||||||
patchShebangs meson_post_install.py
|
patchShebangs meson_post_install.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
|
||||||
updateScript = gnome3.updateScript {
|
|
||||||
packageName = "gnome-characters";
|
|
||||||
attrPath = "gnome3.gnome-characters";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook python3 gobject-introspection ];
|
|
||||||
buildInputs = [
|
|
||||||
glib gtk3 gjs pango gsettings-desktop-schemas
|
|
||||||
adwaita-icon-theme libunistring
|
|
||||||
# typelib
|
|
||||||
gnome-desktop
|
|
||||||
];
|
|
||||||
|
|
||||||
mesonFlags = [
|
|
||||||
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/services"
|
|
||||||
];
|
|
||||||
|
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
||||||
# Fixes https://github.com/NixOS/nixpkgs/issues/31168
|
# Fixes https://github.com/NixOS/nixpkgs/issues/31168
|
||||||
@ -48,6 +68,13 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
attrPath = "gnome3.${pname}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://wiki.gnome.org/Design/Apps/CharacterMap;
|
homepage = https://wiki.gnome.org/Design/Apps/CharacterMap;
|
||||||
description = "Simple utility application to find and insert unusual characters";
|
description = "Simple utility application to find and insert unusual characters";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user