blob: f7e6ee06ceac0f9dcea40511aa762b24ce266122 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, stdenv, fetchzip, zlib }:
stdenv.mkDerivation rec {
pname = "randtype";
version = "1.13";
src = fetchzip {
url = "mirror://sourceforge/randtype/${pname}-${version}.tar.gz";
sha256 = "055xs02qwpgbkn2l57bwghbsrsysg1zhm2asp0byvjpz4sc4w1rd";
};
buildInputs = [ zlib ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/man/man1 $out/bin
install -cp randtype.1.gz $out/share/man/man1
install -cps randtype $out/bin
runHook postInstall
'';
meta = with lib; {
description = "semi-random text typer";
mainProgram = "randtype";
homepage = "https://benkibbey.wordpress.com/randtype/";
maintainers = with maintainers; [ dandellion ];
license = licenses.gpl2Only;
platforms = platforms.unix;
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/randtype.x86_64-darwin
};
}
|