diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-03-29 20:32:22 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-03-29 20:32:22 +0000 |
commit | ef12e6757c4a526e9cb1168ee4745da9523a35bc (patch) | |
tree | 0a3e617c34be6eff07b9336895b493fd1cf6d788 /pkgs/tools/typesetting/halibut | |
parent | 701e3ee6b9ec8f5b2cf8e86fb0308b6743256898 (diff) | |
download | nixlib-ef12e6757c4a526e9cb1168ee4745da9523a35bc.tar nixlib-ef12e6757c4a526e9cb1168ee4745da9523a35bc.tar.gz nixlib-ef12e6757c4a526e9cb1168ee4745da9523a35bc.tar.bz2 nixlib-ef12e6757c4a526e9cb1168ee4745da9523a35bc.tar.lz nixlib-ef12e6757c4a526e9cb1168ee4745da9523a35bc.tar.xz nixlib-ef12e6757c4a526e9cb1168ee4745da9523a35bc.tar.zst nixlib-ef12e6757c4a526e9cb1168ee4745da9523a35bc.zip |
Adding the halibut typesetting system.
svn path=/nixpkgs/trunk/; revision=14759
Diffstat (limited to 'pkgs/tools/typesetting/halibut')
-rw-r--r-- | pkgs/tools/typesetting/halibut/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/halibut/default.nix b/pkgs/tools/typesetting/halibut/default.nix new file mode 100644 index 000000000000..68c09f86e118 --- /dev/null +++ b/pkgs/tools/typesetting/halibut/default.nix @@ -0,0 +1,32 @@ +{stdenv, fetchurl, perl}: + +stdenv.mkDerivation { + name = "halibut-1.0"; + + src = fetchurl { + url = http://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-1.0.tar.gz; + sha256 = "0d039adb88cb8de6f350563514d013209c2d321d1e5c49ea56462c6803f29adb"; + }; + + buildInputs = [ perl ]; + + patchPhase = '' + sed -i -e s@/usr/local@$out@ Makefile + sed -i -e 's@(prefix)/man@(prefix)/share/man@' doc/Makefile + ''; + + installPhase = '' + ensureDir $out/bin + ensureDir $out/share/man/man1 + pushd doc + make halibut.1 + popd + make install + ''; + + meta = { + description = "Documentation production system for software manuals"; + homepage = http://www.chiark.greenend.org.uk/~sgtatham/halibut/; + license = "free"; + }; +} |