2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2012-12-12 07:00:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ascii";
|
2017-09-11 14:01:01 +00:00
|
|
|
version = "3.18";
|
2012-12-12 07:00:19 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://www.catb.org/~esr/ascii/${pname}-${version}.tar.gz";
|
2017-09-11 14:01:01 +00:00
|
|
|
sha256 = "0b87vy06s8s3a8q70pqavsbk4m4ff034sdml2xxa6qfsykaj513j";
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2012-12-12 07:00:19 +00:00
|
|
|
description = "Interactive ASCII name and synonym chart";
|
2020-04-01 01:11:51 +00:00
|
|
|
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 ];
|
2012-12-12 07:00:19 +00:00
|
|
|
};
|
|
|
|
}
|