3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/ascii/default.nix

26 lines
568 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "ascii-${version}";
version = "3.12";
src = fetchurl {
url = "http://www.catb.org/~esr/ascii/${name}.tar.gz";
sha256 = "17jhmmdbhzzaai0lr5aslg0nmqchq1ygdxwd8pgl7qn2jnxhc6ci";
};
prePatch = ''
sed -i -e 's|$(DESTDIR)/usr|$(out)|g' Makefile
'';
preInstall = ''
mkdir -vp "$out/bin" "$out/share/man/man1"
'';
meta = {
description = "Interactive ASCII name and synonym chart";
homepage = "http://www.catb.org/~esr/ascii/";
license = stdenv.lib.licenses.bsd3;
};
}