
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{
|
|
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
|
|
python-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 ];
|
|
broken = lib.versionAtLeast python3.pkgs.sqlalchemy.version "2.0";
|
|
badPlatforms = [
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
};
|
|
}
|