Last active
December 31, 2017 12:46
-
-
Save jluttine/653567481c2b319cf890eaab8456a0d2 to your computer and use it in GitHub Desktop.
bdsync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchFromGitHub, openssl, coreutils }: | |
stdenv.mkDerivation rec { | |
name = "${pname}-${version}"; | |
pname = "bdsync"; | |
version = "0.10.1"; | |
src = fetchFromGitHub { | |
owner = "TargetHolding"; | |
repo = pname; | |
rev = "v${version}"; | |
sha256 = "144hlbk3k29l7sja6piwhd2jsnzzsak13fcjbahd6m8yimxyb2nf"; | |
}; | |
postPatch = '' | |
patchShebangs ./tests.sh | |
patchShebangs ./tests/ | |
''; | |
buildInputs = [ openssl ]; | |
propagatedBuildInputs = [ coreutils ]; | |
checkInputs = [ coreutils ]; | |
doCheck = true; | |
checkPhase = '' | |
echo "HELLO!" | |
make test | |
''; | |
installPhase = '' | |
mkdir -p $out/bin | |
cp bdsync $out/bin/ | |
''; | |
meta = with stdenv.lib; { | |
description = "Fast block device synchronizing tool"; | |
homepage = https://github.com/TargetHolding/bdsync; | |
license = licenses.gpl2; | |
platforms = platforms.all; | |
maintainers = with maintainers; [ jluttine ]; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nix-shell -p bdsync | |
these derivations will be built: | |
/nix/store/vd8g7ab1v1l7d5x9kgga8vxfg8kw30m5-bdsync-0.10.1.drv | |
building path(s) ‘/nix/store/im737j97l4719gwqfd1fl2a81bpr0lsl-bdsync-0.10.1’ | |
unpacking sources | |
unpacking source archive /nix/store/65pws472rq01hdvl1a16b1rrl2pm015y-source | |
source root is source | |
patching sources | |
patching script interpreter paths in ./tests.sh | |
./tests.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
patching script interpreter paths in ./tests/ | |
./tests/test05.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test04.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test03.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test02.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test06.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/perf1.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/supp12-1.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test01.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test09.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/testlib.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test08.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test07.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test12.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test10.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
./tests/test11.sh: interpreter directive changed from "/bin/bash" to "/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash" | |
configuring | |
no configure script, doing nothing | |
building | |
build flags: SHELL=/nix/store/sxwh6a4v8xdlvg4jf3vl2jh9l5760hsc-bash-4.4-p12/bin/bash | |
gcc -Wall -O3 -o bdsync bdsync.c checkzero.c -lcrypto | |
running tests | |
HELLO! | |
./tests.sh | |
test01.sh: | |
**** Checking: basic functionality including --remdata and --patch | |
| ERROR: md5sum not found | |
--> FAIL | |
test02.sh: | |
**** Checking: checksums and different hashes yielding same result | |
| ERROR: md5sum not found | |
--> FAIL | |
test03.sh: | |
**** Checking: Handling different size (zeroes) files with --diffsize=resize option | |
| ERROR: md5sum not found | |
--> FAIL | |
test04.sh: | |
**** Checking: Handling different size (random) files with --diffsize=resize option | |
| ERROR: md5sum not found | |
--> FAIL | |
test05.sh: | |
**** Checking: Handling different size (random) files with --diffsize=minsize option | |
| ERROR: md5sum not found | |
--> FAIL | |
test06.sh: | |
**** Checking: Handling different size files with --diffsize=resize,WARN option | |
| ERROR: md5sum not found | |
--> FAIL | |
test07.sh: | |
**** Checking: handling --zeroblocks option | |
| ERROR: md5sum not found | |
--> FAIL | |
test08.sh: | |
**** Checking: handling --zeroblocks with --remdata option | |
| ERROR: md5sum not found | |
--> FAIL | |
test09.sh: | |
**** Checking: --warndev option when a warning SHOULD be issued | |
| ERROR: md5sum not found | |
--> FAIL | |
test10.sh: | |
**** Checking: --warndev option when a warning SHOULD NOT be issued | |
| ERROR: md5sum not found | |
--> FAIL | |
test11.sh: | |
**** Checking: large file (> 4G) handling | |
| ERROR: md5sum not found | |
--> FAIL | |
test12.sh: | |
**** Checking: stderr forwarding and status returning of subprocess | |
| ERROR: md5sum not found | |
--> FAIL | |
make: *** [Makefile:17: test] Error 1 | |
builder for ‘/nix/store/vd8g7ab1v1l7d5x9kgga8vxfg8kw30m5-bdsync-0.10.1.drv’ failed with exit code 2 | |
error: build of ‘/nix/store/vd8g7ab1v1l7d5x9kgga8vxfg8kw30m5-bdsync-0.10.1.drv’ failed | |
/run/current-system/sw/bin/nix-shell: failed to build all dependencies |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment