1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "libfaketime-${version}";
5 version = "0.9.7";
6
7 src = fetchurl {
8 url = "https://github.com/wolfcw/libfaketime/archive/v${version}.tar.gz";
9 sha256 = "07l189881q0hybzmlpjyp7r5fwz23iafkm957bwy4gnmn9lg6rad";
10 };
11
12 patches = [
13 ./no-date-in-gzip-man-page.patch
14 ];
15
16 preBuild = ''
17 makeFlagsArray+=(PREFIX="$out" LIBDIRNAME=/lib)
18 '';
19
20 meta = with stdenv.lib; {
21 description = "Report faked system time to programs without having to change the system-wide time";
22 homepage = "https://github.com/wolfcw/libfaketime/";
23 license = licenses.gpl2;
24 platforms = platforms.all;
25 maintainers = [ maintainers.bjornfor ];
26 };
27}