summary refs log tree commit diff
path: root/pkgs/tools/misc/profile-sync-daemon
diff options
context:
space:
mode:
authorobadz <3359345+obadz@users.noreply.github.com>2020-04-24 10:48:04 +0100
committerGitHub <noreply@github.com>2020-04-24 10:48:04 +0100
commitea9b5c5faa9cd05a364d9bf1c7844ba03e278cf7 (patch)
tree463ced09cfdeea39caa4ac32ae7986efe211c877 /pkgs/tools/misc/profile-sync-daemon
parent755d20a0ae98ef7bc21d158481f2e0171ca0e950 (diff)
parent0dd0d03c32fb42fc54f6364f33985429efddeeeb (diff)
downloadnixpkgs-ea9b5c5faa9cd05a364d9bf1c7844ba03e278cf7.tar
nixpkgs-ea9b5c5faa9cd05a364d9bf1c7844ba03e278cf7.tar.gz
nixpkgs-ea9b5c5faa9cd05a364d9bf1c7844ba03e278cf7.tar.bz2
nixpkgs-ea9b5c5faa9cd05a364d9bf1c7844ba03e278cf7.tar.lz
nixpkgs-ea9b5c5faa9cd05a364d9bf1c7844ba03e278cf7.tar.xz
nixpkgs-ea9b5c5faa9cd05a364d9bf1c7844ba03e278cf7.tar.zst
nixpkgs-ea9b5c5faa9cd05a364d9bf1c7844ba03e278cf7.zip
Merge pull request #76998 from jflanglois/fix-psd-overlay-helper
profile-sync-daemon: fix psd-overlay-helper paths
Diffstat (limited to 'pkgs/tools/misc/profile-sync-daemon')
-rw-r--r--pkgs/tools/misc/profile-sync-daemon/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/misc/profile-sync-daemon/default.nix b/pkgs/tools/misc/profile-sync-daemon/default.nix
index ae70a82de4f..fd17de60f20 100644
--- a/pkgs/tools/misc/profile-sync-daemon/default.nix
+++ b/pkgs/tools/misc/profile-sync-daemon/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, utillinux}:
+{ stdenv, fetchurl, utillinux, coreutils}:
 
 stdenv.mkDerivation rec {
   version = "6.36";
@@ -17,7 +17,8 @@ stdenv.mkDerivation rec {
     # $HOME detection fails (and is unnecessary)
     sed -i '/^HOME/d' $out/bin/profile-sync-daemon
     substituteInPlace $out/bin/psd-overlay-helper \
-      --replace "PATH=/usr/bin:/bin" "PATH=${utillinux.bin}/bin"
+      --replace "PATH=/usr/bin:/bin" "PATH=${utillinux.bin}/bin:${coreutils}/bin" \
+      --replace "sudo " "/run/wrappers/bin/sudo " 
   '';
 
   preferLocalBuild = true;