diff options
author | Erik Arvstedt <erik.arvstedt@gmail.com> | 2021-03-20 21:19:08 +0100 |
---|---|---|
committer | Erik Arvstedt <erik.arvstedt@gmail.com> | 2021-03-20 22:23:57 +0100 |
commit | 3fc0f7abcda1ae78a6d6df1add5cf01cd9c595f2 (patch) | |
tree | a43670d01ddcc3638361d24e41e896083e1ac2ed /pkgs | |
parent | 4c817c73ac397909eae48f329691fa65bcc788b9 (diff) | |
download | nixpkgs-3fc0f7abcda1ae78a6d6df1add5cf01cd9c595f2.tar nixpkgs-3fc0f7abcda1ae78a6d6df1add5cf01cd9c595f2.tar.gz nixpkgs-3fc0f7abcda1ae78a6d6df1add5cf01cd9c595f2.tar.bz2 nixpkgs-3fc0f7abcda1ae78a6d6df1add5cf01cd9c595f2.tar.lz nixpkgs-3fc0f7abcda1ae78a6d6df1add5cf01cd9c595f2.tar.xz nixpkgs-3fc0f7abcda1ae78a6d6df1add5cf01cd9c595f2.tar.zst nixpkgs-3fc0f7abcda1ae78a6d6df1add5cf01cd9c595f2.zip |
rsbep: 0.1.0 -> 0.2.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/backup/rsbep/default.nix | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/pkgs/tools/backup/rsbep/default.nix b/pkgs/tools/backup/rsbep/default.nix index d7967c018a2..7f59b0af944 100644 --- a/pkgs/tools/backup/rsbep/default.nix +++ b/pkgs/tools/backup/rsbep/default.nix @@ -1,12 +1,14 @@ -{ stdenv, lib, coreutils, gnused, gawk, fetchurl }: +{ lib, stdenv, coreutils, gawk, fetchFromGitHub }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "rsbep"; - version = "0.1.0"; + version = "0.2.0"; - src = fetchurl { - url = "https://www.thanassis.space/rsbep-0.1.0-ttsiodras.tar.bz2"; - sha256 = "1zji34kc9srxp0h1s1m7k60mvgsir1wrx1n3wc990jszfplr32zc"; + src = fetchFromGitHub { + owner = "ttsiodras"; + repo = "rsbep-backup"; + rev = "v${version}"; + sha256 = "0is4jgil3wdqbvx9h66xcyzbqy84ndyydnnay2g9k81a4mcz4dns"; }; postFixup = '' @@ -18,20 +20,27 @@ stdenv.mkDerivation { mv rsbep_chopper $libexecDir # Fix store dependencies in scripts - path="export PATH=$out/bin:$libexecDir:${lib.makeBinPath [ coreutils gnused gawk ]}" + path="export PATH=$out/bin:$libexecDir:${lib.makeBinPath [ coreutils 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 ''; + doInstallCheck = true; + installCheckPhase = '' + cd $TMP + echo hello > input + $out/bin/freeze.sh input > packed + $out/bin/melt.sh packed > output + diff -u input output + ''; + 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; + license = licenses.gpl3Plus; maintainers = [ maintainers.earvstedt ]; }; } |