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