about summary refs log tree commit diff
path: root/pkgs/development/libraries/libfaketime
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-11-02 13:52:39 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-11-02 14:34:37 +0100
commita6c21ccea93cb60d95f7e53cd244ac990445c576 (patch)
tree1c21f394a52554a231c1cf6fc51bf7975f270f6f /pkgs/development/libraries/libfaketime
parent7253a6b7c08e1169a9da195a435a0ef8583da7c7 (diff)
libfaketime: new package
Report faked system time to programs without having to change the
system-wide time.

http://www.code-wizards.com/projects/libfaketime/
Diffstat (limited to 'pkgs/development/libraries/libfaketime')
-rw-r--r--pkgs/development/libraries/libfaketime/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libfaketime/default.nix b/pkgs/development/libraries/libfaketime/default.nix
new file mode 100644
index 0000000000000..7d430614257e0
--- /dev/null
+++ b/pkgs/development/libraries/libfaketime/default.nix
@@ -0,0 +1,22 @@
+{ 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";
+  };
+
+  preBuild = ''
+    makeFlagsArray+=(PREFIX="$out" LIBDIRNAME=/lib)
+  '';
+
+  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 ];
+  };
+}