2012-12-12 07:00:19 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ascii-${version}";
|
2013-11-30 22:48:01 +00:00
|
|
|
version = "3.14";
|
2012-12-12 07:00:19 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.catb.org/~esr/ascii/${name}.tar.gz";
|
2013-11-30 22:48:01 +00:00
|
|
|
sha256 = "1ldwi4cs2d36r1fv3j13cfa8h2pc4yayq5qii91758qqwfzky3kz";
|
2012-12-12 07:00:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
2013-11-30 22:48:01 +00:00
|
|
|
sed -i -e "s|^PREFIX = .*|PREFIX = $out|" Makefile
|
2012-12-12 07:00:19 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -vp "$out/bin" "$out/share/man/man1"
|
|
|
|
'';
|
|
|
|
|
2013-11-30 22:39:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-12-12 07:00:19 +00:00
|
|
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2012-12-12 07:00:19 +00:00
|
|
|
};
|
|
|
|
}
|