2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cairo }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Compute text widths";
|
|
|
|
homepage = "https://github.com/baskerville/txtw";
|
|
|
|
maintainers = with maintainers; [ lihop ];
|
|
|
|
license = licenses.unlicense;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "txtw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|