tix-papers/default.nix
regnat 1114b37de6 Add installphase for hydra builds
Also takes care of declaring hydra products for download
2017-05-12 16:29:37 +02:00

23 lines
450 B
Nix

{
nixpkgs ? <nixpkgs>, system ? builtins.currentSystem
}:
with import nixpkgs { inherit system; };
stdenv.mkDerivation rec {
name = "papers";
version = "0.0";
buildInputs = [
(texlive.combine {
inherit (texlive) scheme-medium syntax todo;
})
];
src = ./.;
installPhase = ''
mkdir -p $out/nix-support
cp out/main.pdf $out/
echo "file pdf $out/main.pdf" >> $out/nix-support/hydra-build-products
'';
}