Add Lout, a document layout system based on a purely functional language.
svn path=/nixpkgs/trunk/; revision=10634
This commit is contained in:
parent
14d227abf2
commit
c3096df3d0
18
pkgs/tools/typesetting/lout/builder.sh
Executable file
18
pkgs/tools/typesetting/lout/builder.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Prepare a makefile specifying the appropriate output directories.
|
||||||
|
|
||||||
|
source "$stdenv/setup" || exit 1
|
||||||
|
|
||||||
|
nixMakefile="nix-makefile"
|
||||||
|
|
||||||
|
unpackPhase && \
|
||||||
|
cd lout-*.* && \
|
||||||
|
cat makefile | \
|
||||||
|
sed -e "s|^PREFIX[[:blank:]]*=.*\$|PREFIX = $out|g ; \
|
||||||
|
s|^LOUTLIBDIR[[:blank:]]*=.*$|LOUTLIBDIR = \$(PREFIX)/include|g ; \
|
||||||
|
s|^LOUTDOCDIR[[:blank:]]*=.*$|LOUTDOCDIR = \$(PREFIX)/doc|g ; \
|
||||||
|
s|^MANDIR[[:blank:]]*=.*$|MANDIR = \$(PREFIX)/man|g" \
|
||||||
|
> "$nixMakefile" && \
|
||||||
|
mkdir -p "$out/bin" && \
|
||||||
|
make -f "$nixMakefile" install
|
19
pkgs/tools/typesetting/lout/default.nix
Normal file
19
pkgs/tools/typesetting/lout/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "lout-3.36";
|
||||||
|
src = fetchurl {
|
||||||
|
url = ftp://ftp.cs.usyd.edu.au/jeff/lout/lout-3.36.tar.gz;
|
||||||
|
sha256 = "b689cbe12074be8817c90070b162593fc9cc51f2f8868701833ff599b24fd4ad";
|
||||||
|
};
|
||||||
|
|
||||||
|
builder = ./builder.sh;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = ''Lout is a document layout system, similar in functionality
|
||||||
|
to TeX/LaTeX, but based on a purely functional programming
|
||||||
|
language. It can produce PostScript output.'';
|
||||||
|
homepage = http://www.cs.usyd.edu.au/~jeff/;
|
||||||
|
license = "GPL";
|
||||||
|
};
|
||||||
|
}
|
@ -619,6 +619,10 @@ rec {
|
|||||||
inherit fetchurl stdenv ghc tetex polytable;
|
inherit fetchurl stdenv ghc tetex polytable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lout = import ../tools/typesetting/lout {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
lzma = import ../tools/compression/lzma {
|
lzma = import ../tools/compression/lzma {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user