make this build with nix-build
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
db678b2bc2
commit
e3a7f43364
|
@ -1,6 +1,6 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
let
|
||||
sources = import ../nix/sources.nix;
|
||||
pkgs = import sources.nixpkgs { };
|
||||
nur = import (builtins.fetchTarball
|
||||
"https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
||||
inherit pkgs;
|
||||
|
@ -8,39 +8,33 @@ let
|
|||
tex = pkgs.callPackage ../nix/texlive.nix { };
|
||||
version = "devel";
|
||||
words = import ../words;
|
||||
book = pkgs.stdenv.mkDerivation {
|
||||
pname = "lewa-book";
|
||||
inherit version;
|
||||
src = ./.;
|
||||
phases = "buildPhase installPhase";
|
||||
buildInputs = with pkgs; [
|
||||
kindlegen
|
||||
mdbook
|
||||
nur.repos.mic92.pandoc-bin
|
||||
tex
|
||||
words
|
||||
];
|
||||
in pkgs.stdenv.mkDerivation {
|
||||
pname = "lewa-book";
|
||||
inherit version;
|
||||
src = ./.;
|
||||
phases = "buildPhase installPhase";
|
||||
buildInputs = with pkgs; [
|
||||
calibre
|
||||
mdbook
|
||||
nur.repos.mic92.pandoc-bin
|
||||
tex
|
||||
words
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
cp -rf $src/src .
|
||||
chmod a+w ./src
|
||||
cp -rf $src/book.toml .
|
||||
mkdir book
|
||||
rm ./src/dictionary.md ||:
|
||||
cp ${words}/dictionary.md ./src/dictionary.md
|
||||
mdbook build
|
||||
cd ./src && ./build.sh && cd ..
|
||||
cd ./book && kindlegen lewa.epub ||: && cd ..
|
||||
'';
|
||||
buildPhase = ''
|
||||
cp -rf $src/src .
|
||||
chmod a+w ./src
|
||||
cp -rf $src/book.toml .
|
||||
mkdir book
|
||||
rm ./src/dictionary.md ||:
|
||||
cp ${words}/dictionary.md ./src/dictionary.md
|
||||
mdbook build
|
||||
cd ./src && ./build.sh && cd ..
|
||||
cd ./book && ebook-convert lewa.epub lewa.mobi ||: && cd ..
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -rf book $out/book
|
||||
'';
|
||||
};
|
||||
in pkgs.dockerTools.buildLayeredImage {
|
||||
name = "within/lewa-book";
|
||||
tag = version;
|
||||
contents = [ nur.repos.xe.quickserv book ];
|
||||
config.Cmd = [ "/bin/quickserv" "--port=9001" "--dir=/book" ];
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -rf book $out/book
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# Prepositions
|
||||
|
||||
In English, prepositions are function words such as "to", "from", "like", and
|
||||
similar. This chapter will cover the L'ewa prepositions and how they are used to
|
||||
add more context to sentences.
|
|
@ -0,0 +1,3 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
pkgs.callPackage ./book { }
|
Loading…
Reference in New Issue