mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
214e92081f
The Makefile has changed so the I had to update the sed line.
28 lines
655 B
Nix
28 lines
655 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ascii-${version}";
|
|
version = "3.14";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.catb.org/~esr/ascii/${name}.tar.gz";
|
|
sha256 = "1ldwi4cs2d36r1fv3j13cfa8h2pc4yayq5qii91758qqwfzky3kz";
|
|
};
|
|
|
|
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.linux;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|