accountsservice: fix paths for nixos
This commit is contained in:
parent
cdaf55a961
commit
ef35c66fe7
@ -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 ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user