xdg-user-dirs: new package

A tool to help manage well known user directories
like the desktop folder and the music folder

http://freedesktop.org/wiki/Software/xdg-user-dirs
This commit is contained in:
Luca Bruno 2014-04-16 15:01:11 +02:00
parent ec021b116d
commit 92a831a4ec
3 changed files with 25 additions and 0 deletions

View File

@ -67,6 +67,9 @@ in {
# Don't let epiphany depend upon gnome-shell # Don't let epiphany depend upon gnome-shell
export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${pkgs.gnome3.gnome_shell}/share/gsettings-schemas/${pkgs.gnome3.gnome_shell.name} export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${pkgs.gnome3.gnome_shell}/share/gsettings-schemas/${pkgs.gnome3.gnome_shell.name}
# Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/
${pkgs.xdg-user-dirs}/bin/xdg-user-dirs-update
${gnome3.gnome_session}/bin/gnome-session& ${gnome3.gnome_session}/bin/gnome-session&
waitPID=$! waitPID=$!
''; '';

View File

@ -0,0 +1,20 @@
{ stdenv, fetchurl, libxslt, docbook_xsl }:
stdenv.mkDerivation rec {
name = "xdg-user-dirs-0.15";
src = fetchurl {
url = "http://user-dirs.freedesktop.org/releases/${name}.tar.gz";
sha256 = "20b4a751f41d0554bce3e0ce5e8d934be98cc62d48f0b90a894c3e1916552786";
};
buildInputs = [ libxslt docbook_xsl ];
meta = with stdenv.lib; {
homepage = http://freedesktop.org/wiki/Software/xdg-user-dirs;
description = "A tool to help manage well known user directories like the desktop folder and the music folder";
license = licenses.gpl2;
maintainers = with maintainers; [ lethalman ];
platforms = platforms.linux;
};
}

View File

@ -9455,6 +9455,8 @@ let
xdaliclock = callPackage ../tools/misc/xdaliclock {}; xdaliclock = callPackage ../tools/misc/xdaliclock {};
xdg-user-dirs = callPackage ../tools/X11/xdg-user-dirs { };
xdg_utils = callPackage ../tools/X11/xdg-utils { }; xdg_utils = callPackage ../tools/X11/xdg-utils { };
xdotool = callPackage ../tools/X11/xdotool { }; xdotool = callPackage ../tools/X11/xdotool { };