blob: 48d1ebfc276257f10e40314a4198495c3ff497e9 (
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
|
{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 = ''
mkdir -p $out/bin
mkdir -p $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 = stdenv.lib.licenses.mit;
};
}
|