nixpkgs-suyu/pkgs/tools/misc/txtw/default.nix

26 lines
593 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cairo }:
2016-01-09 22:06:00 +01:00
stdenv.mkDerivation rec {
version = "0.4";
pname = "txtw";
2016-01-09 22:06:00 +01:00
src = fetchFromGitHub {
owner = "baskerville";
repo = "txtw";
2019-09-09 01:38:31 +02:00
rev = version;
2016-01-09 22:06:00 +01:00
sha256 = "17yjdgdd080fsf5r1wzgk6vvzwsa15gcwc9z64v7x588jm1ryy3k";
};
buildInputs = [ cairo ];
prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
meta = with lib; {
2016-01-09 22:06:00 +01:00
description = "Compute text widths";
homepage = "https://github.com/baskerville/txtw";
2016-01-09 22:06:00 +01:00
maintainers = with maintainers; [ lihop ];
license = licenses.unlicense;
platforms = platforms.linux;
};
}