forked from mirrors/nixpkgs
casync: enable tests
This commit is contained in:
parent
0ee0582a8f
commit
583ec8eac3
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue