2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, fetchurl, perl }:
|
2014-11-02 13:52:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libfaketime";
|
2019-09-27 04:06:21 +02:00
|
|
|
version = "0.9.8";
|
2014-11-02 13:52:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-15 07:45:50 +01:00
|
|
|
url = "https://github.com/wolfcw/libfaketime/archive/v${version}.tar.gz";
|
2019-09-27 04:06:21 +02:00
|
|
|
sha256 = "18s2hjm4sbrlg6sby944z87yslnq9s85p7j892hyr42qrlvq4a06";
|
2014-11-02 13:52:39 +01:00
|
|
|
};
|
|
|
|
|
2014-04-13 15:46:27 +02:00
|
|
|
patches = [
|
|
|
|
./no-date-in-gzip-man-page.patch
|
|
|
|
];
|
|
|
|
|
2018-08-08 20:47:05 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2019-05-14 21:57:41 +02:00
|
|
|
PREFIX = placeholder "out";
|
|
|
|
LIBDIRNAME = "/lib";
|
2014-11-02 13:52:39 +01:00
|
|
|
|
2019-01-11 07:46:39 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type -Wno-error=format-truncation";
|
|
|
|
|
2018-08-08 20:47:05 +02:00
|
|
|
checkInputs = [ perl ];
|
|
|
|
|
2014-11-02 13:52:39 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Report faked system time to programs without having to change the system-wide time";
|
2017-11-15 07:45:50 +01:00
|
|
|
homepage = "https://github.com/wolfcw/libfaketime/";
|
2014-11-02 13:52:39 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|