mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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"
|
||||
"--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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user