diff options
author | Michiel Leenaars <ml.software@leenaa.rs> | 2016-06-29 23:13:45 +0200 |
---|---|---|
committer | Michiel Leenaars <ml.software@leenaa.rs> | 2016-08-09 14:58:16 +0200 |
commit | b25089885573944fc346f4bf5cc65bf6977ca1b3 (patch) | |
tree | 332b4c9510b1f17a0990964e43ee1d579ea5773c /pkgs/tools/system/datefudge | |
parent | 0967b0d303dc6fc297c25ec4885b7dd944f3bea3 (diff) | |
download | nixlib-b25089885573944fc346f4bf5cc65bf6977ca1b3.tar nixlib-b25089885573944fc346f4bf5cc65bf6977ca1b3.tar.gz nixlib-b25089885573944fc346f4bf5cc65bf6977ca1b3.tar.bz2 nixlib-b25089885573944fc346f4bf5cc65bf6977ca1b3.tar.lz nixlib-b25089885573944fc346f4bf5cc65bf6977ca1b3.tar.xz nixlib-b25089885573944fc346f4bf5cc65bf6977ca1b3.tar.zst nixlib-b25089885573944fc346f4bf5cc65bf6977ca1b3.zip |
datefudge: init at 1.2.1
Diffstat (limited to 'pkgs/tools/system/datefudge')
-rw-r--r-- | pkgs/tools/system/datefudge/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/system/datefudge/default.nix b/pkgs/tools/system/datefudge/default.nix new file mode 100644 index 000000000000..d2d14ddd110b --- /dev/null +++ b/pkgs/tools/system/datefudge/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchgit }: + +stdenv.mkDerivation rec { + pname = "datefudge"; + version = "1.2.1"; + name = "${pname}-${version}"; + + src = fetchgit { + sha256 = "0l83kn6c3jr3wzs880zfa64rw81cqjjk55gjxz71rjf2balp64ps"; + url = "git://anonscm.debian.org/users/robert/datefudge.git"; + rev = "cd141c63bebe9b579109b2232b5e83db18f222c2"; + }; + + patchPhase = '' + substituteInPlace Makefile \ + --replace "/usr" "/" \ + --replace "-o root -g root" "" + substituteInPlace datefudge.sh \ + --replace "@LIBDIR@" "$out/lib/" + ''; + + preInstallPhase = "mkdir -P $out/lib/datefudge"; + + installFlags = [ "DESTDIR=$(out)" ]; + + postInstall = "chmod +x $out/lib/datefudge/datefudge.so"; + + meta = with stdenv.lib; { + description = "Fake the system date"; + longDescription = '' + datefudge is a small utility that pretends that the system time is + different by pre-loading a small library which modifies the time, + gettimeofday and clock_gettime system calls. + ''; + homepage = http://packages.qa.debian.org/d/datefudge.html; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ leenaars ]; + }; +} |