mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
29 lines
679 B
Nix
29 lines
679 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ascii";
|
|
version = "3.20";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.catb.org/~esr/ascii/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-nm5X6mDUGagDoCTOY2YlTvtxYma4Tu3VjNmA2rzBFnQ=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "ascii";
|
|
homepage = "http://www.catb.org/~esr/ascii/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|