Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchFromGitHub
2, openssl
3, pandoc
4, which
5}:
6
7stdenv.mkDerivation rec {
8 pname = "bdsync";
9 version = "0.11.1";
10
11 src = fetchFromGitHub {
12 owner = "TargetHolding";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "11grdyc6fgw93jvj965awsycqw5qbzsdys7n8farqnmya8qv8gac";
16 };
17
18 nativeBuildInputs = [ pandoc which ];
19 buildInputs = [ openssl ];
20
21 postPatch = ''
22 patchShebangs ./tests.sh
23 patchShebangs ./tests/
24 '';
25
26 doCheck = true;
27
28 installPhase = ''
29 install -Dm755 bdsync -t $out/bin/
30 install -Dm644 bdsync.1 -t $out/share/man/man1/
31 '';
32
33 meta = with stdenv.lib; {
34 description = "Fast block device synchronizing tool";
35 homepage = https://github.com/TargetHolding/bdsync;
36 license = licenses.gpl2;
37 platforms = platforms.linux;
38 maintainers = with maintainers; [ jluttine ];
39 };
40}