1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

rsbep: init at 0.1.0

fixes #36182
This commit is contained in:
Erik Arvstedt 2018-03-01 19:41:19 +01:00 committed by Jörg Thalheim
parent ac3b53707c
commit c94ad64ae5
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ stdenv, lib, coreutils, gnused, gawk, fetchurl }:
stdenv.mkDerivation rec {
name = "rsbep-${version}";
version = "0.1.0";
src = fetchurl {
url = "https://www.thanassis.space/rsbep-0.1.0-ttsiodras.tar.bz2";
sha256 = "1zji34kc9srxp0h1s1m7k60mvgsir1wrx1n3wc990jszfplr32zc";
};
postFixup = ''
cd $out/bin
# Move internal tool 'rsbep_chopper' to libexec
libexecDir=$out/libexec/rsbep
mkdir -p $libexecDir
mv rsbep_chopper $libexecDir
# Fix store dependencies in scripts
path="export PATH=$out/bin:$libexecDir:${lib.makeBinPath [ coreutils gnused gawk ]}"
sed -i "2i$path" freeze.sh
sed -i "2i$path" melt.sh
substituteInPlace freeze.sh --replace /bin/ls ls
# Remove unneded binary
rm poorZFS.py
'';
meta = with lib; {
description = "Create resilient backups with Reed-Solomon error correction and byte-spreading";
homepage = https://www.thanassis.space/rsbep.html;
license = licenses.gpl3;
maintainers = [ maintainers.earvstedt ];
};
}

View file

@ -1330,6 +1330,8 @@ with pkgs;
riot-web = callPackage ../applications/networking/instant-messengers/riot/riot-web.nix { };
rsbep = callPackage ../tools/backup/rsbep { };
rsyslog = callPackage ../tools/system/rsyslog {
hadoop = null; # Currently Broken
czmq = czmq3;