1 { lib, stdenv, fetchFromGitHub, util-linux, coreutils }:
3 stdenv.mkDerivation rec {
4 pname = "profile-sync-daemon";
7 src = fetchFromGitHub {
9 repo = "profile-sync-daemon";
11 hash = "sha256-BAr+EvSjSPBKdSX49tEgXOpMK3NB5JZ+cmfuKkyDbGs=";
15 PREFIX=\"\" DESTDIR=$out make install
16 substituteInPlace $out/bin/profile-sync-daemon \
17 --replace "/usr/" "$out/" \
18 --replace "sudo " "/run/wrappers/bin/sudo "
19 # $HOME detection fails (and is unnecessary)
20 sed -i '/^HOME/d' $out/bin/profile-sync-daemon
21 substituteInPlace $out/bin/psd-overlay-helper \
22 --replace "PATH=/usr/bin:/bin" "PATH=${util-linux.bin}/bin:${coreutils}/bin" \
23 --replace "sudo " "/run/wrappers/bin/sudo "
27 description = "Syncs browser profile dirs to RAM";
29 Profile-sync-daemon (psd) is a tiny pseudo-daemon designed to manage your
30 browser's profile in tmpfs and to periodically sync it back to your
31 physical disc (HDD/SSD). This is accomplished via a symlinking step and
32 an innovative use of rsync to maintain back-up and synchronization
33 between the two. One of the major design goals of psd is a completely
34 transparent user experience.
36 homepage = "https://github.com/graysky2/profile-sync-daemon";
37 downloadPage = "https://github.com/graysky2/profile-sync-daemon/releases";
38 license = licenses.mit;
39 maintainers = [ maintainers.prikhi ];
40 platforms = platforms.linux;