2014-11-02 12:52:39 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libfaketime-0.9.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.code-wizards.com/projects/libfaketime/${name}.tar.gz";
|
|
|
|
sha256 = "1dw2lqsv2iqwxg51mdn25b4fjj3v357s0mc6ahxawqp210krg29s";
|
|
|
|
};
|
|
|
|
|
2014-04-13 14:46:27 +01:00
|
|
|
patches = [
|
|
|
|
./no-date-in-gzip-man-page.patch
|
|
|
|
];
|
|
|
|
|
2014-11-02 12:52:39 +00:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(PREFIX="$out" LIBDIRNAME=/lib)
|
|
|
|
'';
|
|
|
|
|
2016-11-03 08:24:03 +00:00
|
|
|
# Work around "libfaketime.c:513:7: error: nonnull argument 'buf' compared to NULL [-Werror=nonnull-compare]".
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-nonnull-compare";
|
|
|
|
|
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";
|
|
|
|
homepage = http://www.code-wizards.com/projects/libfaketime/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|