diff options
author | zimbatm <zimbatm@zimbatm.com> | 2015-11-14 17:02:02 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2015-11-15 11:26:56 +0100 |
commit | 71b08ef38e58446c21281b681c9834e270e0d2f9 (patch) | |
tree | 11fe3c80f110d6be86a4b4c98f2a3e06c8de4036 /pkgs/tools/misc | |
parent | 58d870d4b524449f825ca08822a508385c96e2d3 (diff) | |
download | nixlib-71b08ef38e58446c21281b681c9834e270e0d2f9.tar nixlib-71b08ef38e58446c21281b681c9834e270e0d2f9.tar.gz nixlib-71b08ef38e58446c21281b681c9834e270e0d2f9.tar.bz2 nixlib-71b08ef38e58446c21281b681c9834e270e0d2f9.tar.lz nixlib-71b08ef38e58446c21281b681c9834e270e0d2f9.tar.xz nixlib-71b08ef38e58446c21281b681c9834e270e0d2f9.tar.zst nixlib-71b08ef38e58446c21281b681c9834e270e0d2f9.zip |
ttyrec: init at 1.0.8
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/ttyrec/clang-fixes.patch | 21 | ||||
-rw-r--r-- | pkgs/tools/misc/ttyrec/default.nix | 30 |
2 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ttyrec/clang-fixes.patch b/pkgs/tools/misc/ttyrec/clang-fixes.patch new file mode 100644 index 000000000000..126ab44090eb --- /dev/null +++ b/pkgs/tools/misc/ttyrec/clang-fixes.patch @@ -0,0 +1,21 @@ +diff -ru ttyrec-1.0.8.orig/io.h ttyrec-1.0.8/io.h +--- ttyrec-1.0.8.orig/io.h 2006-06-11 17:52:50.000000000 +0200 ++++ ttyrec-1.0.8/io.h 2015-11-15 09:59:54.000000000 +0100 +@@ -9,5 +9,6 @@ + int edup (int oldfd); + int edup2 (int oldfd, int newfd); + FILE* efdopen (int fd, const char *mode); ++void set_progname (const char *name); + + #endif +diff -ru ttyrec-1.0.8.orig/ttyrec.c ttyrec-1.0.8/ttyrec.c +--- ttyrec-1.0.8.orig/ttyrec.c 2006-06-11 17:52:50.000000000 +0200 ++++ ttyrec-1.0.8/ttyrec.c 2015-11-15 09:59:41.000000000 +0100 +@@ -54,6 +54,7 @@ + #include <unistd.h> + #include <string.h> + #include <stdlib.h> ++#include <signal.h> + + #if defined(SVR4) + #include <fcntl.h> diff --git a/pkgs/tools/misc/ttyrec/default.nix b/pkgs/tools/misc/ttyrec/default.nix new file mode 100644 index 000000000000..63b91adb4936 --- /dev/null +++ b/pkgs/tools/misc/ttyrec/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "ttyrec-${version}"; + version = "1.0.8"; + + src = fetchurl { + url = "http://0xcc.net/ttyrec/${name}.tar.gz"; + sha256 = "ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec"; + }; + + patches = [ ./clang-fixes.patch ]; + + makeFlags = [] + ++ stdenv.lib.optional stdenv.cc.isClang "CC=clang"; + + installPhase = '' + mkdir -p $out/{bin,man} + cp ttytime ttyplay ttyrec $out/bin + cp *.1 $out/man + ''; + + meta = with stdenv.lib; { + homepage = "http://0xcc.net/ttyrec/"; + description = "Terminal interaction recorder and player"; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = with maintainers; [ zimbatm ]; + }; +} |