libfaketime: use checkInputs, fix tests

+11 -1
+11 -1
pkgs/development/libraries/libfaketime/default.nix
··· 1 - { stdenv, fetchurl }: 1 + { stdenv, fetchurl, bash, perl }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "libfaketime-${version}"; ··· 13 13 ./no-date-in-gzip-man-page.patch 14 14 ]; 15 15 16 + postPatch = '' 17 + patchShebangs test src 18 + for a in test/functests/test_exclude_mono.sh src/faketime.c ; do 19 + substituteInPlace $a \ 20 + --replace /bin/bash ${stdenv.shell} 21 + done 22 + ''; 23 + 16 24 preBuild = '' 17 25 makeFlagsArray+=(PREFIX="$out" LIBDIRNAME=/lib) 18 26 ''; 27 + 28 + checkInputs = [ perl ]; 19 29 20 30 meta = with stdenv.lib; { 21 31 description = "Report faked system time to programs without having to change the system-wide time";