Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 54de622b3037
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e7786be150b9
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 17, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    e7786be View commit details
Showing with 43 additions and 23 deletions.
  1. +43 −23 pkgs/desktops/gnome-3/core/gnome-user-share/default.nix
66 changes: 43 additions & 23 deletions pkgs/desktops/gnome-3/core/gnome-user-share/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
{ stdenv, intltool, fetchurl, apacheHttpd, nautilus
, pkgconfig, gtk3, glib, libxml2, systemd, adwaita-icon-theme
, wrapGAppsHook, itstool, libnotify, libtool, mod_dnssd
, gnome3, librsvg, gdk_pixbuf, file, libcanberra-gtk3 }:
{ stdenv
, gettext
, fetchurl
, apacheHttpd
, nautilus
, pkgconfig
, gtk3
, glib
, libxml2
, systemd
, wrapGAppsHook
, itstool
, libnotify
, mod_dnssd
, gnome3
, libcanberra-gtk3
}:

stdenv.mkDerivation rec {
name = "gnome-user-share-${version}";
pname = "gnome-user-share";
version = "3.32.0.1";

src = fetchurl {
url = "mirror://gnome/sources/gnome-user-share/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "16w6n0cjyzp8vln3zspvab8jhjprpvs88xc9x7bvigg0wry74945";
};

passthru = {
updateScript = gnome3.updateScript { packageName = "gnome-user-share"; attrPath = "gnome3.gnome-user-share"; };
};

doCheck = true;

NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";

preConfigure = ''
sed -e 's,^LoadModule dnssd_module.\+,LoadModule dnssd_module ${mod_dnssd}/modules/mod_dnssd.so,' \
-e 's,''${HTTP_MODULES_PATH},${apacheHttpd}/modules,' \
@@ -29,20 +34,35 @@ stdenv.mkDerivation rec {
configureFlags = [
"--with-httpd=${apacheHttpd.out}/bin/httpd"
"--with-modules-path=${apacheHttpd.dev}/modules"
"--with-systemduserunitdir=$(out)/etc/systemd/user"
"--with-nautilusdir=$(out)/lib/nautilus/extensions-3.0"
"--with-systemduserunitdir=${placeholder ''out''}/etc/systemd/user"
"--with-nautilusdir=${placeholder ''out''}/lib/nautilus/extensions-3.0"
];

nativeBuildInputs = [
pkgconfig
gettext
itstool
libxml2
wrapGAppsHook
];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [
gtk3 glib intltool itstool libxml2 libtool
wrapGAppsHook file gdk_pixbuf adwaita-icon-theme librsvg
nautilus libnotify libcanberra-gtk3 systemd
gtk3
glib
nautilus
libnotify
libcanberra-gtk3
systemd
];

postInstall = ''
glib-compile-schemas "$out/share/gsettings-schemas/$name/glib-2.0/schemas"
'';
doCheck = true;

passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};

meta = with stdenv.lib; {
homepage = https://help.gnome.org/users/gnome-user-share/3.8;