mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03: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