nixpkgs/pkgs/tools/misc/profile-sync-daemon/default.nix
R. RyanTM a07b8c056a profile-sync-daemon: 6.33 -> 6.34
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/profile-sync-daemon/versions
2018-12-24 21:08:50 -08:00

42 lines
1.5 KiB
Nix

{ stdenv, fetchurl, utillinux}:
stdenv.mkDerivation rec {
version = "6.34";
name = "profile-sync-daemon-${version}";
src = fetchurl {
url = "http://github.com/graysky2/profile-sync-daemon/archive/v${version}.tar.gz";
sha256 = "0v6yzgfwv3mhf1q2fp6abrvr15p9b1c1gahj3mdh5b4bfcsg3n5a";
};
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"
'';
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;
};
}