mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
libfaketime: use checkInputs, fix tests
This commit is contained in:
parent
37ec85fc54
commit
311304155f
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, bash, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libfaketime-${version}";
|
||||
|
@ -13,10 +13,20 @@ stdenv.mkDerivation rec {
|
|||
./no-date-in-gzip-man-page.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs test src
|
||||
for a in test/functests/test_exclude_mono.sh src/faketime.c ; do
|
||||
substituteInPlace $a \
|
||||
--replace /bin/bash ${stdenv.shell}
|
||||
done
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray+=(PREFIX="$out" LIBDIRNAME=/lib)
|
||||
'';
|
||||
|
||||
checkInputs = [ perl ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Report faked system time to programs without having to change the system-wide time";
|
||||
homepage = "https://github.com/wolfcw/libfaketime/";
|
||||
|
|
Loading…
Reference in a new issue