blob: 6a280bc516f968600c33841475f4007d92ca1778 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib, stdenv, fetchFromGitLab, gitUpdater, asciidoctor }:
stdenv.mkDerivation (finalAttrs: {
pname = "ascii";
version = "3.30";
src = fetchFromGitLab {
owner = "esr";
repo = "ascii";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-TE9YR5Va9tXaf2ZyNxz7d8lZRTgnD4Lz7FyqRDl1HNY=";
};
nativeBuildInputs = [
asciidoctor
];
prePatch = ''
sed -i -e "s|^PREFIX = .*|PREFIX = $out|" Makefile
'';
preInstall = ''
mkdir -vp "$out/bin" "$out/share/man/man1"
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Interactive ASCII name and synonym chart";
mainProgram = "ascii";
homepage = "http://www.catb.org/~esr/ascii/";
changelog = "https://gitlab.com/esr/ascii/-/blob/${finalAttrs.version}/NEWS.adoc";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
};
})
|