2019-08-13 23:52:40 +02:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, openssl
|
|
|
|
, pandoc
|
|
|
|
, which
|
|
|
|
}:
|
2017-12-31 14:20:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bdsync";
|
2020-10-22 23:57:05 +02:00
|
|
|
version = "0.11.2";
|
2017-12-31 14:20:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-22 23:57:05 +02:00
|
|
|
owner = "rolffokkens";
|
2017-12-31 14:20:30 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-22 23:57:05 +02:00
|
|
|
sha256 = "0kx422cp1bxr62i1mi7dzrpwmys1kdp865rcymdp4knb5rr5864k";
|
2017-12-31 14:20:30 +01:00
|
|
|
};
|
|
|
|
|
2019-08-13 23:52:40 +02:00
|
|
|
nativeBuildInputs = [ pandoc which ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2017-12-31 14:20:30 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./tests.sh
|
|
|
|
patchShebangs ./tests/
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-13 23:52:40 +02:00
|
|
|
install -Dm755 bdsync -t $out/bin/
|
|
|
|
install -Dm644 bdsync.1 -t $out/share/man/man1/
|
2017-12-31 14:20:30 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fast block device synchronizing tool";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/TargetHolding/bdsync";
|
2017-12-31 14:20:30 +01:00
|
|
|
license = licenses.gpl2;
|
2018-03-08 05:11:52 +01:00
|
|
|
platforms = platforms.linux;
|
2017-12-31 14:20:30 +01:00
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|