mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 09:53:17 +00:00
43 lines
1.6 KiB
Nix
43 lines
1.6 KiB
Nix
{ stdenv, fetchurl, utillinux, coreutils}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "6.40";
|
|
pname = "profile-sync-daemon";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/graysky2/profile-sync-daemon/archive/v${version}.tar.gz";
|
|
sha256 = "1z1n7dqbkk0x9w2pq71nf93wp4hrzin4a0hcvfynj1khf12z369h";
|
|
};
|
|
|
|
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:${coreutils}/bin" \
|
|
--replace "sudo " "/run/wrappers/bin/sudo "
|
|
'';
|
|
|
|
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.
|
|
'';
|
|
homepage = "https://github.com/graysky2/profile-sync-daemon";
|
|
downloadPage = "https://github.com/graysky2/profile-sync-daemon/releases";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.prikhi ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|