Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
926 B
Nix
44 lines
926 B
Nix
{
|
|
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 ];
|
|
};
|
|
})
|