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
|
||||
build-time.tex
|
||||
build-ver.tex
|
||||
result
|
||||
|
||||
## Generated if empty string is given at "Please type another file name for output:"
|
||||
.pdf
|
||||
|
10
.travis.yml
10
.travis.yml
@ -1,10 +1,8 @@
|
||||
dist: bionic
|
||||
|
||||
sudo: required
|
||||
language: nix
|
||||
|
||||
before_install:
|
||||
- sudo apt update
|
||||
- sudo apt install texlive-full rubber pandoc
|
||||
# Make sure that version is up-to-date
|
||||
- sed -i "s/version = .*/version = \"$(git describe --abbrev=0 --tags | sed 's/v//')\";/" default.nix
|
||||
|
||||
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