1{ stdenv, fetchurl, rsync, glibc, gawk }:
2
3stdenv.mkDerivation rec {
4 version = "v5.53";
5 name = "profile-sync-daemon-${version}";
6
7 src = fetchurl {
8 url = "http://github.com/graysky2/profile-sync-daemon/archive/${version}.tar.gz";
9 sha256 = "0m7h9l7dndqgb5k3grpc00f6dpg73p6h4q5sgkf8bvyzvcbdafwx";
10 };
11
12 installPhase = "PREFIX=\"\" DESTDIR=$out make install-systemd-all";
13
14 preferLocalBuild = true;
15
16 meta = with stdenv.lib; {
17 description = "Syncs browser profile dirs to RAM";
18 longDescription = ''
19 Profile-sync-daemon (psd) is a tiny pseudo-daemon designed to manage your
20 browser's profile in tmpfs and to periodically sync it back to your
21 physical disc (HDD/SSD). This is accomplished via a symlinking step and
22 an innovative use of rsync to maintain back-up and synchronization
23 between the two. One of the major design goals of psd is a completely
24 transparent user experience.
25 '';
26 homepage = https://github.com/graysky2/profile-sync-daemon;
27 downloadPage = https://github.com/graysky2/profile-sync-daemon/releases;
28 license = licenses.mit;
29 maintainers = [ maintainers.prikhi ];
30 platforms = platforms.linux;
31 };
32}