Merge pull request #113398 from flokli/casync-update

casync: 2-219-ga8f6c84 -> 2-219-ga8f6c84
This commit is contained in:
adisbladis 2021-02-17 16:28:12 +01:00 committed by GitHub
commit 943e0f5796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,27 +1,40 @@
{ lib, stdenv, fetchFromGitHub
, meson, ninja, pkg-config, python3, sphinx
, acl, curl, fuse, libselinux, udev, xz, zstd
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, python3
, sphinx
, acl
, curl
, fuse
, libselinux
, udev
, xz
, zstd
, fuseSupport ? true
, selinuxSupport ? true
, udevSupport ? true
, glibcLocales, rsync
, glibcLocales
, rsync
}:
stdenv.mkDerivation {
pname = "casync";
version = "2-219-ga8f6c84";
version = "2-226-gbd8898e";
src = fetchFromGitHub {
owner = "systemd";
repo = "casync";
rev = "a8f6c841ccfe59ca8c68aad64df170b64042dce8";
sha256 = "1i3c9wmpabpmx2wfbcyabmwfa66vz92iq5dlbm89v5mvgavz7bws";
owner = "systemd";
repo = "casync";
rev = "bd8898ed92685e12022dd33a04c87786b5262344";
sha256 = "04ibglizjzyd7ih13q6m7ic78n0mzw9nfmb3zd1fcm9j62qlq11i";
};
buildInputs = [ acl curl xz zstd ]
++ lib.optionals (fuseSupport) [ fuse ]
++ lib.optionals (selinuxSupport) [ libselinux ]
++ lib.optionals (udevSupport) [ udev ];
++ lib.optionals (fuseSupport) [ fuse ]
++ lib.optionals (selinuxSupport) [ libselinux ]
++ lib.optionals (udevSupport) [ udev ];
nativeBuildInputs = [ meson ninja pkg-config python3 sphinx ];
checkInputs = [ glibcLocales rsync ];
@ -34,8 +47,8 @@ stdenv.mkDerivation {
PKG_CONFIG_UDEV_UDEVDIR = "lib/udev";
mesonFlags = lib.optionals (!fuseSupport) [ "-Dfuse=false" ]
++ lib.optionals (!udevSupport) [ "-Dudev=false" ]
++ lib.optionals (!selinuxSupport) [ "-Dselinux=false" ];
++ lib.optionals (!udevSupport) [ "-Dudev=false" ]
++ lib.optionals (!selinuxSupport) [ "-Dselinux=false" ];
doCheck = true;
preCheck = ''
@ -44,9 +57,9 @@ stdenv.mkDerivation {
meta = with lib; {
description = "Content-Addressable Data Synchronizer";
homepage = "https://github.com/systemd/casync";
license = licenses.lgpl21;
platforms = platforms.linux;
homepage = "https://github.com/systemd/casync";
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = with maintainers; [ flokli ];
};
}