1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/tools/text/ascii/default.nix
2017-09-11 17:24:33 +02:00

28 lines
651 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "ascii-${version}";
version = "3.18";
src = fetchurl {
url = "http://www.catb.org/~esr/ascii/${name}.tar.gz";
sha256 = "0b87vy06s8s3a8q70pqavsbk4m4ff034sdml2xxa6qfsykaj513j";
};
prePatch = ''
sed -i -e "s|^PREFIX = .*|PREFIX = $out|" Makefile
'';
preInstall = ''
mkdir -vp "$out/bin" "$out/share/man/man1"
'';
meta = with stdenv.lib; {
description = "Interactive ASCII name and synonym chart";
homepage = http://www.catb.org/~esr/ascii/;
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
};
}