ttyrec: 1.0.8 -> ovh-ttyrec 1.1.6.6 (#108182)
Replace unmaintained/broken upstream ttyrec with a maintained, compatible forkwip/yesman
parent
4856e0d285
commit
854096fa4f
@ -0,0 +1,29 @@ |
||||
{ stdenv, fetchFromGitHub, zstd }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "ovh-ttyrec"; |
||||
version = "1.1.6.6"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ovh"; |
||||
repo = "ovh-ttyrec"; |
||||
rev = "v${version}"; |
||||
sha256 = "176g3k2pzw6zpvmcc2f8idn6vhlygf7lfzxvrhysav2izc5dd130"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ zstd ]; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/{bin,man} |
||||
cp ttytime ttyplay ttyrec $out/bin |
||||
cp docs/*.1 $out/man |
||||
''; |
||||
|
||||
meta = with stdenv.lib; { |
||||
homepage = "https://github.com/ovh/ovh-ttyrec/"; |
||||
description = "Terminal interaction recorder and player"; |
||||
license = licenses.bsd3; |
||||
platforms = platforms.all; |
||||
maintainers = with maintainers; [ chaduffy zimbatm ]; |
||||
}; |
||||
} |
@ -1,21 +0,0 @@ |
||||
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>
|
@ -1,31 +0,0 @@ |
||||
{ stdenv, fetchurl }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "ttyrec"; |
||||
version = "1.0.8"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://0xcc.net/ttyrec/${pname}-${version}.tar.gz"; |
||||
sha256 = "ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec"; |
||||
}; |
||||
|
||||
patches = [ ./clang-fixes.patch ]; |
||||
|
||||
makeFlags = stdenv.lib.optional stdenv.buildPlatform.isLinux "CFLAGS=-DSVR4" |
||||
++ 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 ]; |
||||
broken = true; # 2020-01-28 |
||||
}; |
||||
} |
Loading…
Reference in new issue