at v192 34 lines 1.2 kB view raw
1{ stdenv, fetchurl, pkgconfig, glib, intltool, makeWrapper 2, libtool, gobjectIntrospection, polkit, systemd, coreutils }: 3 4stdenv.mkDerivation rec { 5 name = "accountsservice-${version}"; 6 version = "0.6.40"; 7 8 src = fetchurl { 9 url = "http://www.freedesktop.org/software/accountsservice/accountsservice-${version}.tar.xz"; 10 sha256 = "0ayb3y3l25dmwxlh9g071h02mphjfbkvi2k5f635bayb01k7akzh"; 11 }; 12 13 buildInputs = [ pkgconfig glib intltool libtool makeWrapper 14 gobjectIntrospection polkit systemd ]; 15 16 configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" 17 "--localstatedir=/var" ]; 18 19 patches = [ ./no-create-dirs.patch ]; 20 patchFlags = "-p0"; 21 22 preFixup = '' 23 wrapProgram "$out/libexec/accounts-daemon" \ 24 --run "${coreutils}/bin/mkdir -p /var/lib/AccountsService/users" \ 25 --run "${coreutils}/bin/mkdir -p /var/lib/AccountsService/icons" 26 ''; 27 28 meta = with stdenv.lib; { 29 description = "D-Bus interface for user account query and manipulation"; 30 homepage = http://www.freedesktop.org/wiki/Software/AccountsService; 31 license = licenses.gpl3; 32 maintainers = with maintainers; [ pSub ]; 33 }; 34}