Skip to content

Commit ba5e9bb

Browse files
committed
Added nix release derivation
1 parent 2a8aeb1 commit ba5e9bb

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

Diff for: builder.sh

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This is the nix builder script for release.nix
2+
3+
source $stdenv/setup
4+
5+
buildPhase() {
6+
cd doc
7+
ensureDir $out
8+
9+
## html
10+
make TARGETDIR=$out/html ref.html
11+
12+
## nroff
13+
make just-man-pages
14+
cp -a man $out/man
15+
16+
## dvi
17+
make ref.dvi
18+
cp ref.dvi $out/manual.dvi
19+
20+
## ps
21+
make ref.ps
22+
cp ref.ps $out/manual.ps
23+
24+
## pdf
25+
make ref.pdf
26+
cp ref.pdf $out/manual.pdf
27+
28+
# support hydra builds as published on http://hydra.batlab.org/project/condor/
29+
ensureDir $out/nix-support
30+
echo "doc manual $out/html" >>$out/nix-support/hydra-build-products
31+
echo "doc-pdf manual $out/manual.pdf" >> $out/nix-support/hydra-build-products
32+
echo "doc dvi $out/manual.dvi" >> $out/nix-support/hydra-build-products
33+
echo "doc ps $out/manual.ps" >> $out/nix-support/hydra-build-products
34+
echo "doc release-notes $out/html/8_Version_History.html" >> $out/nix-support/hydra-build-products
35+
}
36+
37+
genericBuild

Diff for: release.nix

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This is a nix deriviation for building all of the condor documentation
2+
# For more info see http://nixos.org/
3+
4+
{ nixpkgs ? ../nixpkgs }:
5+
6+
{
7+
build =
8+
with import nixpkgs {};
9+
10+
stdenv.mkDerivation {
11+
name = "condor-doc";
12+
version = "7.3.2";
13+
src = ./.;
14+
15+
buildInputs = [ tetex transfig ghostscript netpbm latex2html ncompress ];
16+
phases = "unpackPhase buildPhase fixupPhase";
17+
builder = ./builder.sh;
18+
};
19+
}

0 commit comments

Comments
 (0)