accountsservice: fix paths for nixos

This commit is contained in:
Alexander Ried 2016-06-01 12:59:56 +02:00
parent cdaf55a961
commit ef35c66fe7

View File

@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--localstatedir=/var" ]; "--localstatedir=/var" ];
prePatch = ''
substituteInPlace src/daemon.c --replace '"/usr/sbin/' '"/run/current-system/sw/sbin/'
substituteInPlace src/user.c --replace '"/usr/sbin/' '"/run/current-system/sw/sbin/' --replace '"/usr/bin/' '"/run/current-system/sw/bin' --replace '"/bin/cat"' '"/run/current-system/sw/bin/cat"'
'';
patches = [ ./no-create-dirs.patch ]; patches = [ ./no-create-dirs.patch ];