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";
|
2019-08-13 23:52:40 +02:00
|
|
|
version = "0.11.1";
|
2017-12-31 14:20:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TargetHolding";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-08-13 23:52:40 +02:00
|
|
|
sha256 = "11grdyc6fgw93jvj965awsycqw5qbzsdys7n8farqnmya8qv8gac";
|
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";
|
|
|
|
homepage = https://github.com/TargetHolding/bdsync;
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|