From a6c21ccea93cb60d95f7e53cd244ac990445c576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 2 Nov 2014 13:52:39 +0100 Subject: [PATCH] libfaketime: new package Report faked system time to programs without having to change the system-wide time. http://www.code-wizards.com/projects/libfaketime/ --- .../libraries/libfaketime/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/libraries/libfaketime/default.nix diff --git a/pkgs/development/libraries/libfaketime/default.nix b/pkgs/development/libraries/libfaketime/default.nix new file mode 100644 index 000000000000..7d430614257e --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2d3ae69e72b8..656ea4388fb7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5656,6 +5656,8 @@ let libetpan = callPackage ../development/libraries/libetpan { }; + libfaketime = callPackage ../development/libraries/libfaketime { }; + libfm = callPackage ../development/libraries/libfm { }; libfm-extra = callPackage ../development/libraries/libfm { extraOnly = true;