nixpkgs/pkgs/by-name/lo/lout/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

49 lines
1.6 KiB
Nix

{lib, stdenv, fetchFromGitHub, ghostscript}:
stdenv.mkDerivation rec {
pname = "lout";
version = "3.43";
src = fetchFromGitHub {
owner = "william8000";
repo = pname;
rev = version;
hash = "sha256-YUFrlM7BnDlG1rUV90yBvWG6lOKW5qKxs/xdq6I/kI0=";
};
buildInputs = [ ghostscript ];
makeFlags = [ "PREFIX=$(out)/" "CC=${stdenv.cc.targetPrefix}cc" ];
meta = {
description = "Document layout system similar in style to LaTeX";
longDescription = ''
The Lout document formatting system is now reads a high-level
description of a document similar in style to LaTeX and produces
a PostScript or plain text output file.
Lout offers an unprecedented range of advanced features,
including optimal paragraph and page breaking, automatic
hyphenation, PostScript EPS file inclusion and generation,
equation formatting, tables, diagrams, rotation and scaling,
sorted indexes, bibliographic databases, running headers and
odd-even pages, automatic cross referencing, multilingual
documents including hyphenation (most European languages are
supported), formatting of computer programs, and much more, all
ready to use. Furthermore, Lout is easily extended with
definitions which are very much easier to write than troff of
TeX macros because Lout is a high-level, purely functional
language, the outcome of an eight-year research project that
went back to the beginning.
'';
homepage = "https://github.com/william8000/lout";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.all;
maintainers = [ ];
};
}