1 { lib, stdenv, coreutils, gawk, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "0is4jgil3wdqbvx9h66xcyzbqy84ndyydnnay2g9k81a4mcz4dns";
17 # Move internal tool 'rsbep_chopper' to libexec
18 libexecDir=$out/libexec/rsbep
20 mv rsbep_chopper $libexecDir
22 # Fix store dependencies in scripts
23 path="export PATH=$out/bin:$libexecDir:${lib.makeBinPath [ coreutils gawk ]}"
24 sed -i "2i$path" freeze.sh
25 sed -i "2i$path" melt.sh
27 # Remove unneded binary
31 doInstallCheck = true;
32 installCheckPhase = ''
35 $out/bin/freeze.sh input > packed
36 $out/bin/melt.sh packed > output
41 description = "Create resilient backups with Reed-Solomon error correction and byte-spreading";
42 homepage = "https://www.thanassis.space/rsbep.html";
43 license = licenses.gpl3Plus;
44 maintainers = [ maintainers.erikarvstedt ];