2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cairo }:
|
2016-01-09 21:06:00 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.4";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "txtw";
|
2016-01-09 21:06:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baskerville";
|
|
|
|
repo = "txtw";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2016-01-09 21:06:00 +00:00
|
|
|
sha256 = "17yjdgdd080fsf5r1wzgk6vvzwsa15gcwc9z64v7x588jm1ryy3k";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cairo ];
|
|
|
|
|
|
|
|
prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-01-09 21:06:00 +00:00
|
|
|
description = "Compute text widths";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/baskerville/txtw";
|
2016-01-09 21:06:00 +00:00
|
|
|
maintainers = with maintainers; [ lihop ];
|
|
|
|
license = licenses.unlicense;
|
|
|
|
platforms = platforms.linux;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "txtw";
|
2016-01-09 21:06:00 +00:00
|
|
|
};
|
|
|
|
}
|