nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 58 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 stdenv, 5 makeWrapper, 6 python3, 7 openssh, 8 rsync, 9 findutils, 10 which, 11}: 12 13stdenv.mkDerivation { 14 pname = "bsync"; 15 version = "0-unstable-2023-12-21"; 16 17 src = fetchFromGitHub { 18 owner = "dooblem"; 19 repo = "bsync"; 20 rev = "25f77730750720ad68b0ab2773e79d9ca98c3647"; 21 hash = "sha256-k25MjLis0/dp1TTS4aFeJZq/c0T01LmNcWtC+dw/kKY="; 22 }; 23 24 installPhase = '' 25 runHook preInstall 26 install -Dm555 bsync -t $out/bin 27 runHook postInstall 28 ''; 29 30 nativeBuildInputs = [ makeWrapper ]; 31 buildInputs = [ python3 ]; 32 33 fixupPhase = '' 34 runHook preFixup 35 36 patchShebangs $out/bin/bsync 37 wrapProgram $out/bin/bsync \ 38 --prefix PATH ":" ${ 39 lib.makeLibraryPath [ 40 openssh 41 rsync 42 findutils 43 which 44 ] 45 } 46 47 runHook postFixup 48 ''; 49 50 meta = { 51 homepage = "https://github.com/dooblem/bsync"; 52 description = "Bidirectional Synchronization using Rsync"; 53 license = lib.licenses.gpl3Only; 54 maintainers = with lib.maintainers; [ dietmarw ]; 55 platforms = lib.platforms.unix; 56 mainProgram = "bsync"; 57 }; 58}