Travis-CI: Use Nix
This commit is contained in:
parent
cd783b7933
commit
0f711c20f7
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
10
.travis.yml
10
.travis.yml
@ -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
26
default.nix
Normal 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/
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user