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 {
name = "casync-${version}";
@ -13,9 +17,22 @@ stdenv.mkDerivation rec {
buildInputs = [ acl curl fuse libselinux udev xz zstd ];
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";
doCheck = true;
preCheck = ''
export LC_ALL="en_US.utf-8"
'';
meta = with stdenv.lib; {
description = "Content-Addressable Data Synchronizer";
homepage = https://github.com/systemd/casync;