1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/tools/misc/ttyrec/default.nix

31 lines
803 B
Nix
Raw Normal View History

{ stdenv, fetchurl, buildPlatform }:
2015-11-14 16:02:02 +00:00
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 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; {
homepage = "http://0xcc.net/ttyrec/";
description = "Terminal interaction recorder and player";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ zimbatm ];
};
}