1 { lib, stdenv, fetchurl, util-linux, coreutils}:
3 stdenv.mkDerivation rec {
5 pname = "profile-sync-daemon";
8 url = "https://github.com/graysky2/profile-sync-daemon/archive/v${version}.tar.gz";
9 sha256 = "1x47ydrwawkic5cgzp0ikd99g1hbpzc2aalq9z630vm13yw2adnp";
13 PREFIX=\"\" DESTDIR=$out make install
14 substituteInPlace $out/bin/profile-sync-daemon \
15 --replace "/usr/" "$out/" \
16 --replace "sudo " "/run/wrappers/bin/sudo "
17 # $HOME detection fails (and is unnecessary)
18 sed -i '/^HOME/d' $out/bin/profile-sync-daemon
19 substituteInPlace $out/bin/psd-overlay-helper \
20 --replace "PATH=/usr/bin:/bin" "PATH=${util-linux.bin}/bin:${coreutils}/bin" \
21 --replace "sudo " "/run/wrappers/bin/sudo "
24 preferLocalBuild = true;
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;