at 24.11-pre 874 B view raw
1{ lib, stdenv, fetchFromGitHub 2, openssl 3, pandoc 4, which 5}: 6 7stdenv.mkDerivation rec { 8 pname = "bdsync"; 9 version = "0.11.3"; 10 11 src = fetchFromGitHub { 12 owner = "rolffokkens"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "sha256-58yoF6s0WjH+1mTY7X5OX53YgcnDmGxoCR8Kvl6lP+A="; 16 }; 17 18 nativeBuildInputs = [ pandoc which ]; 19 buildInputs = [ openssl ]; 20 21 postPatch = '' 22 patchShebangs ./tests.sh 23 patchShebangs ./tests/ 24 ''; 25 26 doCheck = true; 27 28 installPhase = '' 29 install -Dm755 bdsync -t $out/bin/ 30 install -Dm644 bdsync.1 -t $out/share/man/man1/ 31 ''; 32 33 meta = with lib; { 34 description = "Fast block device synchronizing tool"; 35 homepage = "https://github.com/rolffokkens/bdsync"; 36 license = licenses.gpl2Only; 37 platforms = platforms.linux; 38 maintainers = with maintainers; [ jluttine ]; 39 mainProgram = "bdsync"; 40 }; 41}