nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 openssl,
6 pandoc,
7 which,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "bdsync";
12 version = "0.11.4";
13
14 src = fetchFromGitHub {
15 owner = "rolffokkens";
16 repo = "bdsync";
17 rev = "v${finalAttrs.version}";
18 sha256 = "sha256-uvP26gdyIPC+IHxO5CYVuabfT4mnoWDOyaLTplYCW0I=";
19 };
20
21 nativeBuildInputs = [
22 pandoc
23 which
24 ];
25 buildInputs = [ openssl ];
26
27 postPatch = ''
28 patchShebangs ./tests.sh
29 patchShebangs ./tests/
30 '';
31
32 doCheck = true;
33
34 installPhase = ''
35 install -Dm755 bdsync -t $out/bin/
36 install -Dm644 bdsync.1 -t $out/share/man/man1/
37 '';
38
39 meta = {
40 description = "Fast block device synchronizing tool";
41 homepage = "https://github.com/rolffokkens/bdsync";
42 license = lib.licenses.gpl2Only;
43 platforms = lib.platforms.linux;
44 maintainers = with lib.maintainers; [ jluttine ];
45 mainProgram = "bdsync";
46 };
47})