casync: nixpkgs-fmt
This commit is contained in:
parent
a240271309
commit
8b6562bd7b
@ -1,10 +1,23 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib
|
||||||
, meson, ninja, pkg-config, python3, sphinx
|
, stdenv
|
||||||
, acl, curl, fuse, libselinux, udev, xz, zstd
|
, fetchFromGitHub
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, python3
|
||||||
|
, sphinx
|
||||||
|
, acl
|
||||||
|
, curl
|
||||||
|
, fuse
|
||||||
|
, libselinux
|
||||||
|
, udev
|
||||||
|
, xz
|
||||||
|
, zstd
|
||||||
, fuseSupport ? true
|
, fuseSupport ? true
|
||||||
, selinuxSupport ? true
|
, selinuxSupport ? true
|
||||||
, udevSupport ? true
|
, udevSupport ? true
|
||||||
, glibcLocales, rsync
|
, glibcLocales
|
||||||
|
, rsync
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -19,9 +32,9 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ acl curl xz zstd ]
|
buildInputs = [ acl curl xz zstd ]
|
||||||
++ lib.optionals (fuseSupport) [ fuse ]
|
++ lib.optionals (fuseSupport) [ fuse ]
|
||||||
++ lib.optionals (selinuxSupport) [ libselinux ]
|
++ lib.optionals (selinuxSupport) [ libselinux ]
|
||||||
++ lib.optionals (udevSupport) [ udev ];
|
++ lib.optionals (udevSupport) [ udev ];
|
||||||
nativeBuildInputs = [ meson ninja pkg-config python3 sphinx ];
|
nativeBuildInputs = [ meson ninja pkg-config python3 sphinx ];
|
||||||
checkInputs = [ glibcLocales rsync ];
|
checkInputs = [ glibcLocales rsync ];
|
||||||
|
|
||||||
@ -34,8 +47,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
PKG_CONFIG_UDEV_UDEVDIR = "lib/udev";
|
PKG_CONFIG_UDEV_UDEVDIR = "lib/udev";
|
||||||
mesonFlags = lib.optionals (!fuseSupport) [ "-Dfuse=false" ]
|
mesonFlags = lib.optionals (!fuseSupport) [ "-Dfuse=false" ]
|
||||||
++ lib.optionals (!udevSupport) [ "-Dudev=false" ]
|
++ lib.optionals (!udevSupport) [ "-Dudev=false" ]
|
||||||
++ lib.optionals (!selinuxSupport) [ "-Dselinux=false" ];
|
++ lib.optionals (!selinuxSupport) [ "-Dselinux=false" ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
@ -44,9 +57,9 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Content-Addressable Data Synchronizer";
|
description = "Content-Addressable Data Synchronizer";
|
||||||
homepage = "https://github.com/systemd/casync";
|
homepage = "https://github.com/systemd/casync";
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ flokli ];
|
maintainers = with maintainers; [ flokli ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user