1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/tools/text/ascii/default.nix

28 lines
653 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "ascii";
2017-09-11 15:01:01 +01:00
version = "3.18";
src = fetchurl {
url = "http://www.catb.org/~esr/ascii/${pname}-${version}.tar.gz";
2017-09-11 15:01:01 +01:00
sha256 = "0b87vy06s8s3a8q70pqavsbk4m4ff034sdml2xxa6qfsykaj513j";
};
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 ];
};
}