nixpkgs/pkgs/tools/backup/bdsync/default.nix

41 lines
847 B
Nix
Raw Normal View History

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