nixpkgs/pkgs/tools/text/ascii/default.nix

28 lines
651 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "ascii-${version}";
2015-09-16 05:51:05 +00:00
version = "3.15";
src = fetchurl {
url = "http://www.catb.org/~esr/ascii/${name}.tar.gz";
2015-09-16 05:51:05 +00:00
sha256 = "0pzzfljg2ijnnys3fzj3f2p288sl5cgk83a2mpcm679pcj5xpqdc";
};
prePatch = ''
sed -i -e "s|^PREFIX = .*|PREFIX = $out|" Makefile
'';
preInstall = ''
mkdir -vp "$out/bin" "$out/share/man/man1"
'';
2013-11-30 22:39:52 +00:00
meta = with stdenv.lib; {
description = "Interactive ASCII name and synonym chart";
homepage = http://www.catb.org/~esr/ascii/;
2013-11-30 22:39:52 +00:00
license = licenses.bsd3;
2015-10-28 17:53:31 +00:00
platforms = platforms.all;
2013-11-30 22:39:52 +00:00
maintainers = [ maintainers.bjornfor ];
};
}