fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "ttyrec-${version}";
5 version = "1.0.8";
6
7 src = fetchurl {
8 url = "http://0xcc.net/ttyrec/${name}.tar.gz";
9 sha256 = "ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec";
10 };
11
12 patches = [ ./clang-fixes.patch ];
13
14 makeFlags = stdenv.lib.optional stdenv.buildPlatform.isLinux "CFLAGS=-DSVR4"
15 ++ stdenv.lib.optional stdenv.cc.isClang "CC=clang";
16
17 installPhase = ''
18 mkdir -p $out/{bin,man}
19 cp ttytime ttyplay ttyrec $out/bin
20 cp *.1 $out/man
21 '';
22
23 meta = with stdenv.lib; {
24 homepage = http://0xcc.net/ttyrec/;
25 description = "Terminal interaction recorder and player";
26 license = licenses.bsd3;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ zimbatm ];
29 };
30}