2020-01-05 22:22:33 +01:00
|
|
|
{ stdenv, fetchurl, utillinux, coreutils}:
|
2014-12-11 22:12:29 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-06 13:07:03 +02:00
|
|
|
version = "6.38";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "profile-sync-daemon";
|
2014-12-11 22:12:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-22 10:14:28 +02:00
|
|
|
url = "https://github.com/graysky2/profile-sync-daemon/archive/v${version}.tar.gz";
|
2020-05-06 13:07:03 +02:00
|
|
|
sha256 = "0mhjgd2b3grdaad64b72m8i5rm9k58yx7kpiqmhmd3kl5qlgxagy";
|
2014-12-11 22:12:29 +01:00
|
|
|
};
|
|
|
|
|
2018-09-05 19:18:11 +02:00
|
|
|
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 \
|
2020-01-05 22:22:33 +01:00
|
|
|
--replace "PATH=/usr/bin:/bin" "PATH=${utillinux.bin}/bin:${coreutils}/bin" \
|
|
|
|
--replace "sudo " "/run/wrappers/bin/sudo "
|
2018-09-05 19:18:11 +02:00
|
|
|
'';
|
2014-12-11 22:12:29 +01:00
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Syncs browser profile dirs to RAM";
|
|
|
|
longDescription = ''
|
|
|
|
Profile-sync-daemon (psd) is a tiny pseudo-daemon designed to manage your
|
|
|
|
browser's profile in tmpfs and to periodically sync it back to your
|
|
|
|
physical disc (HDD/SSD). This is accomplished via a symlinking step and
|
|
|
|
an innovative use of rsync to maintain back-up and synchronization
|
|
|
|
between the two. One of the major design goals of psd is a completely
|
|
|
|
transparent user experience.
|
|
|
|
'';
|
2020-03-07 08:13:29 +01:00
|
|
|
homepage = "https://github.com/graysky2/profile-sync-daemon";
|
2020-04-01 03:11:51 +02:00
|
|
|
downloadPage = "https://github.com/graysky2/profile-sync-daemon/releases";
|
2014-12-11 22:12:29 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.prikhi ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|