mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
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 {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user