3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/txtw/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

26 lines
598 B
Nix

{ 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;
};
}