1
0

Travis-CI: Use Nix

This commit is contained in:
dump_stack() 2019-08-28 01:41:11 +00:00
parent cd783b7933
commit 0f711c20f7
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
3 changed files with 31 additions and 6 deletions

1
.gitignore vendored
View File

@ -29,6 +29,7 @@
translators.tex translators.tex
build-time.tex build-time.tex
build-ver.tex build-ver.tex
result
## Generated if empty string is given at "Please type another file name for output:" ## Generated if empty string is given at "Please type another file name for output:"
.pdf .pdf

View File

@ -1,10 +1,8 @@
dist: bionic language: nix
sudo: required
before_install: before_install:
- sudo apt update # Make sure that version is up-to-date
- sudo apt install texlive-full rubber pandoc - sed -i "s/version = .*/version = \"$(git describe --abbrev=0 --tags | sed 's/v//')\";/" default.nix
script: script:
- make - nix-build

26
default.nix Normal file
View File

@ -0,0 +1,26 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
pname = "free-as-in-freedom-v2-ru";
version = "0.99.5";
src = ./.;
FONTCONFIG_FILE = pkgs.makeFontsConf {
fontDirectories = [ pkgs.liberation_ttf ];
};
LANG = "C.UTF-8";
buildInputs = with pkgs; [
git utillinux gnumake
texlive.combined.scheme-full rubber
pandoc
];
installPhase = ''
mkdir -p $out
cp faif-2.0.{fb2,pdf} $out/
'';
}