fabs: init at 1.1
This commit is contained in:
parent
9e9444a744
commit
38b97e374d
66
pkgs/tools/backup/fabs/default.nix
Normal file
66
pkgs/tools/backup/fabs/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, perl
|
||||
, python3
|
||||
, sqlite
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "fabs";
|
||||
version = "1.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openafs-contrib";
|
||||
repo = "fabs";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ejAcCwrOWGX0zsMw224f9GTWlozNYC0gU6LdTk0XqH0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
perl
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
alembic
|
||||
dateutil
|
||||
pyyaml
|
||||
setuptools
|
||||
sqlalchemy
|
||||
];
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
preBuild = ''
|
||||
export PREFIX=$out
|
||||
'';
|
||||
|
||||
LOCALSTATEDIR = "/var";
|
||||
LOCKDIR = "/run/lock/fabs";
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/etc"
|
||||
cp -t "$out/etc" -r etc/fabs
|
||||
'';
|
||||
|
||||
# remove once sqlalchemy backend no longer uses deprecated methods
|
||||
SQLALCHEMY_SILENCE_UBER_WARNING = 1;
|
||||
|
||||
nativeCheckInputs = [
|
||||
python3.pkgs.pytestCheckHook
|
||||
sqlite
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
outputsToInstall = [ "out" "man" ];
|
||||
mainProgram = "fabsys";
|
||||
description = "Flexible AFS Backup System for the OpenAFS distributed file system";
|
||||
homepage = "https://github.com/openafs-contrib/fabs";
|
||||
license = with licenses; [ isc ];
|
||||
maintainers = with maintainers; [ spacefrogg ];
|
||||
badPlatforms = [
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1537,6 +1537,8 @@ with pkgs;
|
|||
|
||||
guestfs-tools = callPackage ../tools/virtualization/guestfs-tools { };
|
||||
|
||||
fabs = callPackage ../tools/backup/fabs { };
|
||||
|
||||
fwbuilder = libsForQt5.callPackage ../tools/security/fwbuilder { };
|
||||
|
||||
headsetcontrol = callPackage ../tools/audio/headsetcontrol { };
|
||||
|
|
Loading…
Reference in a new issue