From 38582b0f32c4972836832062e7104dd15f08c7e6 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 25 Dec 2018 17:48:38 +0100 Subject: [PATCH] libzapojit: rename from gnome3.libzapojit --- pkgs/desktops/gnome-3/default.nix | 4 +--- .../libraries}/libzapojit/default.nix | 14 ++++++-------- pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 9 insertions(+), 11 deletions(-) rename pkgs/{desktops/gnome-3/core => development/libraries}/libzapojit/default.nix (65%) diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index a9708f7b2e1a..7f8b8743ee8c 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -38,7 +38,7 @@ lib.makeScope pkgs.newScope (self: with self; { inherit (pkgs) atk glib gobject-introspection gspell webkitgtk gtk3 gtkmm3 libgtop libgudev libhttpseverywhere librsvg libsecret gdk_pixbuf gtksourceview gtksourceviewmm gtksourceview4 easytag meld orca rhythmbox shotwell gnome-usage - clutter clutter-gst clutter-gtk cogl gtk-vnc libdazzle libgda libgit2-glib libgxps libgdata libgepub libcroco libpeas libgee geocode-glib libgweather librest; + clutter clutter-gst clutter-gtk cogl gtk-vnc libdazzle libgda libgit2-glib libgxps libgdata libgepub libcroco libpeas libgee geocode-glib libgweather librest libzapojit; libsoup = pkgs.libsoup.override { gnomeSupport = true; }; libchamplain = pkgs.libchamplain.override { libsoup = libsoup; }; @@ -160,8 +160,6 @@ lib.makeScope pkgs.newScope (self: with self; { eog = callPackage ./core/eog { }; - libzapojit = callPackage ./core/libzapojit { }; - mutter = callPackage ./core/mutter { }; # Needed for elementary's gala and greeter until they get around to adapting to all the API breaking changes in libmutter-3 diff --git a/pkgs/desktops/gnome-3/core/libzapojit/default.nix b/pkgs/development/libraries/libzapojit/default.nix similarity index 65% rename from pkgs/desktops/gnome-3/core/libzapojit/default.nix rename to pkgs/development/libraries/libzapojit/default.nix index 5c0291767877..2ad017dc90be 100644 --- a/pkgs/desktops/gnome-3/core/libzapojit/default.nix +++ b/pkgs/development/libraries/libzapojit/default.nix @@ -1,30 +1,28 @@ -{ stdenv, fetchurl, pkgconfig, glib, intltool, json-glib, rest, libsoup, gnome-online-accounts, gnome3, gobject-introspection }: -let +{ stdenv, fetchurl, pkgconfig, glib, intltool, json-glib, librest, libsoup, gnome3, gobject-introspection }: + +stdenv.mkDerivation rec { pname = "libzapojit"; version = "0.0.3"; -in -stdenv.mkDerivation rec { - name = "${pname}-${version}"; outputs = [ "out" "dev" ]; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; sha256 = "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"; }; nativeBuildInputs = [ pkgconfig intltool gobject-introspection ]; - propagatedBuildInputs = [ glib json-glib rest libsoup gnome-online-accounts ]; # zapojit-0.0.pc + propagatedBuildInputs = [ glib json-glib librest libsoup gnome3.gnome-online-accounts ]; # zapojit-0.0.pc passthru = { updateScript = gnome3.updateScript { packageName = pname; - attrPath = "gnome3.${pname}"; }; }; meta = with stdenv.lib; { description = "GObject wrapper for the SkyDrive and Hotmail REST APIs"; + homepage = https://wiki.gnome.org/Projects/Zapojit; license = licenses.lgpl21Plus; maintainers = gnome3.maintainers; platforms = platforms.linux; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9a6be7439d08..271197eb7245 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11500,6 +11500,8 @@ in libyubikey = callPackage ../development/libraries/libyubikey { }; + libzapojit = callPackage ../development/libraries/libzapojit { }; + libzen = callPackage ../development/libraries/libzen { }; libzip = callPackage ../development/libraries/libzip { };