3
0
Fork 0
forked from mirrors/nixpkgs

casync: enable tests

This commit is contained in:
Florian Klink 2018-06-25 01:49:52 +02:00
parent 0ee0582a8f
commit 583ec8eac3

View file

@ -1,4 +1,8 @@
{ stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkgconfig, sphinx, acl, curl, fuse, libselinux, udev, xz, zstd }: { stdenv, fetchFromGitHub, fetchpatch
, meson, ninja, pkgconfig, sphinx
, acl, curl, fuse, libselinux, udev, xz, zstd
, glibcLocales, rsync
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "casync-${version}"; name = "casync-${version}";
@ -13,9 +17,22 @@ stdenv.mkDerivation rec {
buildInputs = [ acl curl fuse libselinux udev xz zstd ]; buildInputs = [ acl curl fuse libselinux udev xz zstd ];
nativeBuildInputs = [ meson ninja pkgconfig sphinx ]; nativeBuildInputs = [ meson ninja pkgconfig sphinx ];
checkInputs = [ glibcLocales rsync ];
postPatch = ''
for f in test/test-*.sh.in; do
patchShebangs $f
done
patchShebangs test/http-server.py
'';
PKG_CONFIG_UDEV_UDEVDIR = "lib/udev"; PKG_CONFIG_UDEV_UDEVDIR = "lib/udev";
doCheck = true;
preCheck = ''
export LC_ALL="en_US.utf-8"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Content-Addressable Data Synchronizer"; description = "Content-Addressable Data Synchronizer";
homepage = https://github.com/systemd/casync; homepage = https://github.com/systemd/casync;