mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
zfs-autobackup: init at 3.1
added zfs-autobackup to all-packages.nix
This commit is contained in:
parent
6248814b68
commit
cb2d0338dc
33
pkgs/tools/backup/zfs-autobackup/default.nix
Normal file
33
pkgs/tools/backup/zfs-autobackup/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ lib, python3Packages }:
|
||||||
|
|
||||||
|
let
|
||||||
|
pythonPackages = python3Packages;
|
||||||
|
|
||||||
|
in
|
||||||
|
pythonPackages.buildPythonApplication rec {
|
||||||
|
pname = "zfs_autobackup";
|
||||||
|
version = "3.1";
|
||||||
|
|
||||||
|
src = pythonPackages.fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "42c22001717b3d7cfdae6297fedc11b2dd1eb2a4bd25b6bb1c9232dd3b70ad67";
|
||||||
|
};
|
||||||
|
|
||||||
|
# argparse is part of the standardlib
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace setup.py --replace "argparse" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pythonPackages; [ colorama ];
|
||||||
|
|
||||||
|
# tests need zfs filesystem
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "colorama" "argparse" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/psy0rz/zfs_autobackup";
|
||||||
|
description = "ZFS backup, replicationand snapshot tool";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [ mschneider ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -10472,6 +10472,8 @@ with pkgs;
|
||||||
|
|
||||||
zerofree = callPackage ../tools/filesystems/zerofree { };
|
zerofree = callPackage ../tools/filesystems/zerofree { };
|
||||||
|
|
||||||
|
zfs-autobackup = callPackage ../tools/backup/zfs-autobackup { };
|
||||||
|
|
||||||
zfsbackup = callPackage ../tools/backup/zfsbackup { };
|
zfsbackup = callPackage ../tools/backup/zfsbackup { };
|
||||||
|
|
||||||
zfstools = callPackage ../tools/filesystems/zfstools { };
|
zfstools = callPackage ../tools/filesystems/zfstools { };
|
||||||
|
|
Loading…
Reference in a new issue