
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
49 lines
1.6 KiB
Nix
49 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
util-linux,
|
|
coreutils,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "profile-sync-daemon";
|
|
version = "6.50";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "graysky2";
|
|
repo = "profile-sync-daemon";
|
|
rev = "v${version}";
|
|
hash = "sha256-Wb9YLxuu9i9s/Y6trz5NZDU9WRywe3138cp5Q2gWbxM=";
|
|
};
|
|
|
|
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=${util-linux.bin}/bin:${coreutils}/bin" \
|
|
--replace "sudo " "/run/wrappers/bin/sudo "
|
|
'';
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|