nixpkgs-suyu/pkgs/tools/misc/ttyrec/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

30 lines
801 B
Nix

{ stdenv, fetchurl, buildPlatform }:
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"
++ 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 ];
};
}