summary refs log tree commit diff
path: root/pkgs/tools/misc/txtw/default.nix
blob: b642fb6ec5cec873d2ac4186c054bef93e7a8af3 (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
{ stdenv, fetchFromGitHub, cairo }:

stdenv.mkDerivation rec {
  version = "0.4";
  pname = "txtw";

  src = fetchFromGitHub {
    owner = "baskerville";
    repo = "txtw";
    rev = "${version}";
    sha256 = "17yjdgdd080fsf5r1wzgk6vvzwsa15gcwc9z64v7x588jm1ryy3k";
  };

  buildInputs = [ cairo ];

  prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';

  meta = with stdenv.lib; {
    description = "Compute text widths";
    homepage = https://github.com/baskerville/txtw;
    maintainers = with maintainers; [ lihop ];
    license = licenses.unlicense;
    platforms = platforms.linux;
  };
}