Merge pull request #32826 from jtojnar/gnome-python3

More GNOME clean-ups
This commit is contained in:
Jan Tojnar 2017-12-22 17:57:01 +01:00 committed by GitHub
commit 6e3351d9cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 68 additions and 33 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, intltool, fetchurl, python { stdenv, intltool, fetchurl, python3
, pkgconfig, gtk3, glib, gobjectIntrospection , pkgconfig, gtk3, glib, gobjectIntrospection
, wrapGAppsHook, itstool, libxml2, docbook_xsl , wrapGAppsHook, itstool, libxml2, docbook_xsl
, gnome3, gdk_pixbuf, libxslt }: , gnome3, gdk_pixbuf, libxslt }:
@ -9,9 +9,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig intltool itstool wrapGAppsHook docbook_xsl libxslt gobjectIntrospection pkgconfig intltool itstool wrapGAppsHook docbook_xsl libxslt gobjectIntrospection
]; ];
buildInputs = [ gtk3 glib libxml2 python buildInputs = [
gnome3.gsettings_desktop_schemas gtk3 glib libxml2 python3 python3.pkgs.pygobject3
gdk_pixbuf gnome3.defaultIconTheme ]; gnome3.gsettings_desktop_schemas
gdk_pixbuf gnome3.defaultIconTheme
];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, pkgconfig, gnome3, python, dconf { fetchurl, stdenv, pkgconfig, gnome3, python3, dconf
, intltool, libsoup, libxml2, libsecret, icu, sqlite , intltool, libsoup, libxml2, libsecret, icu, sqlite
, p11_kit, db, nspr, nss, libical, gperf, makeWrapper, valaSupport ? true , p11_kit, db, nspr, nss, libical, gperf, makeWrapper, valaSupport ? true
, vala, cmake, kerberos, openldap, webkitgtk, libaccounts-glib, json_glib }: , vala, cmake, kerberos, openldap, webkitgtk, libaccounts-glib, json_glib }:
@ -6,21 +6,25 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src; inherit (import ./src.nix fetchurl) name src;
nativeBuildInputs = [ cmake pkgconfig intltool python gperf makeWrapper ]; nativeBuildInputs = [
buildInputs = with gnome3; cmake pkgconfig intltool python3 gperf makeWrapper
[ glib libsoup libxml2 gtk gnome_online_accounts ] ++ stdenv.lib.optional valaSupport vala;
(stdenv.lib.getLib dconf) gcr p11_kit libgweather libgdata buildInputs = with gnome3; [
icu sqlite gsettings_desktop_schemas kerberos openldap webkitgtk glib libsoup libxml2 gtk gnome_online_accounts
libaccounts-glib json_glib ] gcr p11_kit libgweather libgdata libaccounts-glib json_glib
++ stdenv.lib.optional valaSupport vala; icu sqlite kerberos openldap webkitgtk
];
propagatedBuildInputs = [ libsecret nss nspr libical db ]; propagatedBuildInputs = [ libsecret nss nspr libical db ];
# uoa irrelevant for now # uoa irrelevant for now
cmakeFlags = [ "-DENABLE_UOA=OFF" ] cmakeFlags = [
++ stdenv.lib.optionals valaSupport [ "-DENABLE_UOA=OFF"
"-DENABLE_VALA_BINDINGS=ON" "-DENABLE_INTROSPECTION=ON" ] ++ stdenv.lib.optionals valaSupport [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" ]; "-DENABLE_VALA_BINDINGS=ON"
"-DENABLE_INTROSPECTION=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
];
enableParallelBuilding = true; enableParallelBuilding = true;
@ -33,8 +37,8 @@ stdenv.mkDerivation rec {
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
platforms = platforms.linux; license = licenses.lgpl2;
maintainers = gnome3.maintainers; maintainers = gnome3.maintainers;
platforms = platforms.linux;
}; };
} }

View File

@ -2,7 +2,7 @@
, libcanberra_gtk3, accountsservice, libpwquality, libpulseaudio , libcanberra_gtk3, accountsservice, libpwquality, libpulseaudio
, gdk_pixbuf, librsvg, libnotify, libgudev , gdk_pixbuf, librsvg, libnotify, libgudev
, libxml2, polkit, libxslt, libgtop, libsoup, colord, colord-gtk , libxml2, polkit, libxslt, libgtop, libsoup, colord, colord-gtk
, cracklib, python, libkrb5, networkmanagerapplet, networkmanager , cracklib, libkrb5, networkmanagerapplet, networkmanager
, libwacom, samba, shared_mime_info, tzdata, libtool , libwacom, samba, shared_mime_info, tzdata, libtool
, docbook_xsl, docbook_xsl_ns, modemmanager, clutter, clutter_gtk , docbook_xsl, docbook_xsl_ns, modemmanager, clutter, clutter_gtk
, fontconfig, sound-theme-freedesktop, grilo }: , fontconfig, sound-theme-freedesktop, grilo }:

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, python, libxml2Python, libxslt, which, libX11, gnome3, gtk3, glib { stdenv, fetchurl, pkgconfig, libxslt, which, libX11, gnome3, gtk3, glib
, intltool, gnome_doc_utils, libxkbfile, xkeyboard_config, isocodes, itstool, wayland , intltool, gnome_doc_utils, xkeyboard_config, isocodes, itstool, wayland
, libseccomp, bubblewrap, gobjectIntrospection }: , libseccomp, bubblewrap, gobjectIntrospection }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -13,9 +13,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig which itstool intltool libxslt gnome_doc_utils gobjectIntrospection pkgconfig which itstool intltool libxslt gnome_doc_utils gobjectIntrospection
]; ];
buildInputs = [ python libxml2Python libX11 bubblewrap buildInputs = [
xkeyboard_config isocodes wayland libX11 bubblewrap xkeyboard_config isocodes wayland
gtk3 glib libxkbfile libseccomp ]; gtk3 glib libseccomp
];
propagatedBuildInputs = [ gnome3.gsettings_desktop_schemas ]; propagatedBuildInputs = [ gnome3.gsettings_desktop_schemas ];
@ -29,6 +30,8 @@ stdenv.mkDerivation rec {
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Library with common API for various GNOME modules";
license = with licenses; [ gpl2 lgpl2 ];
platforms = platforms.linux; platforms = platforms.linux;
maintainers = gnome3.maintainers; maintainers = gnome3.maintainers;
}; };

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, dbus, libgcrypt, libtasn1, pam, python, glib, libxslt { stdenv, fetchurl, pkgconfig, dbus, libgcrypt, libtasn1, pam, python2, glib, libxslt
, intltool, pango, gcr, gdk_pixbuf, atk, p11_kit, wrapGAppsHook , intltool, pango, gcr, gdk_pixbuf, atk, p11_kit, wrapGAppsHook
, docbook_xsl_ns, docbook_xsl, gnome3 }: , docbook_xsl, docbook_xml_dtd_42, gnome3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src; inherit (import ./src.nix fetchurl) name src;
@ -8,21 +8,41 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
buildInputs = with gnome3; [ buildInputs = with gnome3; [
dbus libgcrypt pam python gtk3 gconf libgnome_keyring dbus libgcrypt pam gtk3 gconf libgnome_keyring
pango gcr gdk_pixbuf atk p11_kit pango gcr gdk_pixbuf atk p11_kit
]; ];
# In 3.20.1, tests do not support Python 3
checkInputs = [ dbus python2 ];
propagatedBuildInputs = [ glib libtasn1 libxslt ]; propagatedBuildInputs = [ glib libtasn1 libxslt ];
nativeBuildInputs = [ pkgconfig intltool docbook_xsl_ns docbook_xsl wrapGAppsHook ]; nativeBuildInputs = [
pkgconfig intltool docbook_xsl docbook_xml_dtd_42 wrapGAppsHook
] ++ stdenv.lib.optionals doCheck checkInputs;
configureFlags = [ configureFlags = [
"--with-pkcs11-config=$$out/etc/pkcs11/" # installation directories "--with-pkcs11-config=$$out/etc/pkcs11/" # installation directories
"--with-pkcs11-modules=$$out/lib/pkcs11/" "--with-pkcs11-modules=$$out/lib/pkcs11/"
]; ];
postPatch = ''
patchShebangs build
'';
doCheck = true;
checkPhase = ''
export HOME=$(mktemp -d)
dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
make check
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
platforms = platforms.linux; description = "Collection of components in GNOME that store secrets, passwords, keys, certificates and make them available to applications";
homepage = https://wiki.gnome.org/Projects/GnomeKeyring;
license = licenses.gpl2;
maintainers = gnome3.maintainers; maintainers = gnome3.maintainers;
platforms = platforms.linux;
}; };
} }

View File

@ -1,14 +1,19 @@
{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, flex, bison, libxml2, intltool, { stdenv, fetchurl, pkgconfig, gnome3, gtk3, flex, bison, libxml2, intltool,
itstool, python2, makeWrapper }: itstool, python3, ncurses, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src; inherit (import ./src.nix fetchurl) name src;
enableParallelBuilding = true; enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [
buildInputs = [ flex bison gtk3 libxml2 gnome3.gjs gnome3.gdl pkgconfig intltool itstool python3 makeWrapper
gnome3.libgda gnome3.gtksourceview intltool itstool python2 makeWrapper # Required by python3
ncurses
];
buildInputs = [
flex bison gtk3 libxml2 gnome3.gjs gnome3.gdl
gnome3.libgda gnome3.gtksourceview
gnome3.gsettings_desktop_schemas gnome3.gsettings_desktop_schemas
]; ];
@ -22,6 +27,7 @@ stdenv.mkDerivation rec {
description = "Software development studio"; description = "Software development studio";
homepage = http://anjuta.org/; homepage = http://anjuta.org/;
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }