tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libfaketime: use checkInputs, fix tests
Jan Malakhovski
7 years ago
31130415
37ec85fc
+11
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libfaketime
default.nix
+11
-1
pkgs/development/libraries/libfaketime/default.nix
···
1
1
-
{ stdenv, fetchurl }:
1
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
16
+
postPatch = ''
17
17
+
patchShebangs test src
18
18
+
for a in test/functests/test_exclude_mono.sh src/faketime.c ; do
19
19
+
substituteInPlace $a \
20
20
+
--replace /bin/bash ${stdenv.shell}
21
21
+
done
22
22
+
'';
23
23
+
16
24
preBuild = ''
17
25
makeFlagsArray+=(PREFIX="$out" LIBDIRNAME=/lib)
18
26
'';
27
27
+
28
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";