60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
27 lines
652 B
Nix
27 lines
652 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ascii";
|
|
version = "3.19";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.catb.org/~esr/ascii/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-+dou/tgvJFZY+VYeW3VoCecerw5adzWsW+uSTN2ppWA=";
|
|
};
|
|
|
|
prePatch = ''
|
|
sed -i -e "s|^PREFIX = .*|PREFIX = $out|" Makefile
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -vp "$out/bin" "$out/share/man/man1"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interactive ASCII name and synonym chart";
|
|
homepage = "http://www.catb.org/~esr/ascii/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|