Files
nixpkgs/pkgs/by-name/ca/casync/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

89 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
pkg-config,
python3,
sphinx,
acl,
curl,
fuse,
libselinux,
udev,
xz,
zstd,
fuseSupport ? true,
selinuxSupport ? true,
udevSupport ? true,
glibcLocales,
rsync,
udevCheckHook,
}:
stdenv.mkDerivation {
pname = "casync";
version = "2-unstable-2023-10-16";
src = fetchFromGitHub {
owner = "systemd";
repo = "casync";
rev = "e6817a79d89b48e1c6083fb1868a28f1afb32505";
hash = "sha256-L7I80kSG4/ES2tGvHHgvOxJZzF76yeqy2WquKCPhnFk=";
};
buildInputs = [
acl
curl
xz
zstd
]
++ lib.optionals fuseSupport [ fuse ]
++ lib.optionals selinuxSupport [ libselinux ]
++ lib.optionals udevSupport [ udev ];
nativeBuildInputs = [
meson
ninja
pkg-config
python3
sphinx
];
nativeCheckInputs = [
glibcLocales
rsync
]
++ lib.optionals udevSupport [
udevCheckHook
];
postPatch = ''
for f in test/test-*.sh.in; do
patchShebangs $f
done
patchShebangs test/http-server.py
'';
PKG_CONFIG_UDEV_UDEVDIR = "lib/udev";
mesonFlags =
lib.optionals (!fuseSupport) [ "-Dfuse=false" ]
++ lib.optionals (!udevSupport) [ "-Dudev=false" ]
++ lib.optionals (!selinuxSupport) [ "-Dselinux=false" ];
doCheck = true;
preCheck = ''
export LC_ALL="en_US.utf-8"
'';
doInstallCheck = true;
meta = with lib; {
description = "Content-Addressable Data Synchronizer";
mainProgram = "casync";
homepage = "https://github.com/systemd/casync";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ flokli ];
};
}