diff options
author | Erik Arvstedt <erik.arvstedt@gmail.com> | 2018-03-01 19:41:19 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-03-03 17:10:05 +0000 |
commit | c94ad64ae5573f529213c4d97baf3ea67e86b6b7 (patch) | |
tree | 011b289839889f2d888fb8610eb1dcce2434bfef /pkgs/tools/backup | |
parent | ac3b53707c7edf238b297ba4ce3799cecf2ee72d (diff) | |
download | nixlib-c94ad64ae5573f529213c4d97baf3ea67e86b6b7.tar nixlib-c94ad64ae5573f529213c4d97baf3ea67e86b6b7.tar.gz nixlib-c94ad64ae5573f529213c4d97baf3ea67e86b6b7.tar.bz2 nixlib-c94ad64ae5573f529213c4d97baf3ea67e86b6b7.tar.lz nixlib-c94ad64ae5573f529213c4d97baf3ea67e86b6b7.tar.xz nixlib-c94ad64ae5573f529213c4d97baf3ea67e86b6b7.tar.zst nixlib-c94ad64ae5573f529213c4d97baf3ea67e86b6b7.zip |
rsbep: init at 0.1.0
fixes #36182
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r-- | pkgs/tools/backup/rsbep/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/backup/rsbep/default.nix b/pkgs/tools/backup/rsbep/default.nix new file mode 100644 index 000000000000..96bbea4791e8 --- /dev/null +++ b/pkgs/tools/backup/rsbep/default.nix @@ -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 ]; + }; +} |