at 24.11-pre 794 B view raw
1{ buildGoModule, fetchFromGitHub, lib, openssh, makeWrapper }: 2 3buildGoModule rec { 4 pname = "diskrsync"; 5 version = "1.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "dop251"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-hM70WD+M3jwze0IG84WTFf1caOUk2s9DQ7pR+KNIt1M="; 12 }; 13 14 vendorHash = "sha256-lJaM/sC5/qmmo7Zu7nGR6ZdXa1qw4SuVxawQ+d/m+Aw="; 15 16 ldflags = [ "-s" "-w" ]; 17 18 nativeBuildInputs = [ makeWrapper ]; 19 20 preFixup = '' 21 wrapProgram "$out/bin/diskrsync" --argv0 diskrsync --prefix PATH : ${openssh}/bin 22 ''; 23 24 meta = with lib; { 25 description = "Rsync for block devices and disk images"; 26 mainProgram = "diskrsync"; 27 homepage = "https://github.com/dop251/diskrsync"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ jluttine ]; 30 }; 31}