Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libfaketime / nix-store-date.patch
blobe93a7ec76507085bb7a1fc27261daa73d014e09c
1 From abd7dd05b440e3dc9621a1579e4afb0267897d9c Mon Sep 17 00:00:00 2001
2 From: Finn Behrens <me@kloenk.de>
3 Date: Fri, 5 Mar 2021 21:58:57 +0100
4 Subject: [PATCH] use nix date path
6 ---
7 src/faketime.c | 6 +-----
8 1 file changed, 1 insertion(+), 5 deletions(-)
10 diff --git a/src/faketime.c b/src/faketime.c
11 index af618f2..48e47da 100644
12 --- a/src/faketime.c
13 +++ b/src/faketime.c
14 @@ -50,11 +50,7 @@
16 const char version[] = "0.9.10";
18 -#if (defined __APPLE__) || (defined __sun)
19 -static const char *date_cmd = "gdate";
20 -#else
21 -static const char *date_cmd = "date";
22 -#endif
23 +static const char *date_cmd = "@DATE_CMD@";
25 #define PATH_BUFSIZE 4096
27 --
28 2.24.3 (Apple Git-128)