summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNick Hu <me@nickhu.co.uk>2018-09-06 02:18:11 +0900
committerNick Hu <me@nickhu.co.uk>2018-09-13 17:15:13 +0900
commit574f4c406915ce71ec66ea2ce7c1466f72d6c0ae (patch)
treec2c3b20283c8f9d33d2fd20a6be1b5f9a416b51e /pkgs
parentbf2a90298ab8a5dcd2596f7fabaad431c6709afd (diff)
downloadnixpkgs-574f4c406915ce71ec66ea2ce7c1466f72d6c0ae.tar
nixpkgs-574f4c406915ce71ec66ea2ce7c1466f72d6c0ae.tar.gz
nixpkgs-574f4c406915ce71ec66ea2ce7c1466f72d6c0ae.tar.bz2
nixpkgs-574f4c406915ce71ec66ea2ce7c1466f72d6c0ae.tar.lz
nixpkgs-574f4c406915ce71ec66ea2ce7c1466f72d6c0ae.tar.xz
nixpkgs-574f4c406915ce71ec66ea2ce7c1466f72d6c0ae.tar.zst
nixpkgs-574f4c406915ce71ec66ea2ce7c1466f72d6c0ae.zip
profile-sync-daemon: 5.53 -> 6.33
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/profile-sync-daemon/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/tools/misc/profile-sync-daemon/default.nix b/pkgs/tools/misc/profile-sync-daemon/default.nix
index c1b99b31567..cfc13b0e108 100644
--- a/pkgs/tools/misc/profile-sync-daemon/default.nix
+++ b/pkgs/tools/misc/profile-sync-daemon/default.nix
@@ -1,15 +1,24 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, utillinux}:
 
 stdenv.mkDerivation rec {
-  version = "5.53";
+  version = "6.33";
   name = "profile-sync-daemon-${version}";
 
   src = fetchurl {
     url = "http://github.com/graysky2/profile-sync-daemon/archive/v${version}.tar.gz";
-    sha256 = "0m7h9l7dndqgb5k3grpc00f6dpg73p6h4q5sgkf8bvyzvcbdafwx";
+    sha256 = "0dzs51xbszzmcg82n2dil6nljj4gn0aw9rqjmhyi4a5frc8g6xmb";
   };
 
-  installPhase = "PREFIX=\"\" DESTDIR=$out make install-systemd-all";
+  installPhase = ''
+    PREFIX=\"\" DESTDIR=$out make install
+    substituteInPlace $out/bin/profile-sync-daemon \
+      --replace "/usr/" "$out/" \
+      --replace "sudo " "/run/wrappers/bin/sudo "
+    # $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"
+  '';
 
   preferLocalBuild = true;