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";
2020-10-22 22:57:05 +01:00
version = "0.11.2";
2017-12-31 13:20:30 +00:00
src = fetchFromGitHub {
2020-10-22 22:57:05 +01:00
owner = "rolffokkens";
2017-12-31 13:20:30 +00:00
repo = pname;
rev = "v${version}";
2020-10-22 22:57:05 +01:00
sha256 = "0kx422cp1bxr62i1mi7dzrpwmys1kdp865rcymdp4knb5rr5864k";
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";
2017-12-31 13:20:30 +00:00
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 ];
};
}