2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl
|
|
|
|
, pandoc
|
|
|
|
, which
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bdsync";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.11.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-27 00:29:36 +00:00
|
|
|
owner = "rolffokkens";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-58yoF6s0WjH+1mTY7X5OX53YgcnDmGxoCR8Kvl6lP+A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pandoc which ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./tests.sh
|
|
|
|
patchShebangs ./tests/
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 bdsync -t $out/bin/
|
|
|
|
install -Dm644 bdsync.1 -t $out/share/man/man1/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast block device synchronizing tool";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/rolffokkens/bdsync";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "bdsync";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|