Files
nixpkgs/pkgs/by-name/bs/bsync/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
stdenv,
makeWrapper,
python3,
openssh,
rsync,
findutils,
which,
}:
stdenv.mkDerivation {
pname = "bsync";
version = "0-unstable-2023-12-21";
src = fetchFromGitHub {
owner = "dooblem";
repo = "bsync";
rev = "25f77730750720ad68b0ab2773e79d9ca98c3647";
hash = "sha256-k25MjLis0/dp1TTS4aFeJZq/c0T01LmNcWtC+dw/kKY=";
};
installPhase = ''
runHook preInstall
install -Dm555 bsync -t $out/bin
runHook postInstall
'';
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python3 ];
fixupPhase = ''
runHook preFixup
patchShebangs $out/bin/bsync
wrapProgram $out/bin/bsync \
--prefix PATH ":" ${
lib.makeLibraryPath [
openssh
rsync
findutils
which
]
}
runHook postFixup
'';
meta = with lib; {
homepage = "https://github.com/dooblem/bsync";
description = "Bidirectional Synchronization using Rsync";
license = licenses.gpl3Only;
maintainers = with maintainers; [ dietmarw ];
platforms = platforms.unix;
mainProgram = "bsync";
};
}