2018-08-20 18:43:41 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2015-11-14 16:02:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ttyrec";
|
2015-11-14 16:02:02 +00:00
|
|
|
version = "1.0.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://0xcc.net/ttyrec/${pname}-${version}.tar.gz";
|
2015-11-14 16:02:02 +00:00
|
|
|
sha256 = "ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./clang-fixes.patch ];
|
|
|
|
|
2018-08-20 18:43:41 +00:00
|
|
|
makeFlags = stdenv.lib.optional stdenv.buildPlatform.isLinux "CFLAGS=-DSVR4"
|
2015-11-14 16:02:02 +00:00
|
|
|
++ 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; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://0xcc.net/ttyrec/";
|
2015-11-14 16:02:02 +00:00
|
|
|
description = "Terminal interaction recorder and player";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
2020-01-28 13:30:31 +00:00
|
|
|
broken = true; # 2020-01-28
|
2015-11-14 16:02:02 +00:00
|
|
|
};
|
|
|
|
}
|