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
|
let
|
||||||
sources = import ../nix/sources.nix;
|
|
||||||
pkgs = import sources.nixpkgs { };
|
|
||||||
nur = import (builtins.fetchTarball
|
nur = import (builtins.fetchTarball
|
||||||
"https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
"https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
@ -8,39 +8,33 @@ let
|
||||||
tex = pkgs.callPackage ../nix/texlive.nix { };
|
tex = pkgs.callPackage ../nix/texlive.nix { };
|
||||||
version = "devel";
|
version = "devel";
|
||||||
words = import ../words;
|
words = import ../words;
|
||||||
book = pkgs.stdenv.mkDerivation {
|
in pkgs.stdenv.mkDerivation {
|
||||||
pname = "lewa-book";
|
pname = "lewa-book";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
phases = "buildPhase installPhase";
|
phases = "buildPhase installPhase";
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
kindlegen
|
calibre
|
||||||
mdbook
|
mdbook
|
||||||
nur.repos.mic92.pandoc-bin
|
nur.repos.mic92.pandoc-bin
|
||||||
tex
|
tex
|
||||||
words
|
words
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cp -rf $src/src .
|
cp -rf $src/src .
|
||||||
chmod a+w ./src
|
chmod a+w ./src
|
||||||
cp -rf $src/book.toml .
|
cp -rf $src/book.toml .
|
||||||
mkdir book
|
mkdir book
|
||||||
rm ./src/dictionary.md ||:
|
rm ./src/dictionary.md ||:
|
||||||
cp ${words}/dictionary.md ./src/dictionary.md
|
cp ${words}/dictionary.md ./src/dictionary.md
|
||||||
mdbook build
|
mdbook build
|
||||||
cd ./src && ./build.sh && cd ..
|
cd ./src && ./build.sh && cd ..
|
||||||
cd ./book && kindlegen lewa.epub ||: && cd ..
|
cd ./book && ebook-convert lewa.epub lewa.mobi ||: && cd ..
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -rf book $out/book
|
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" ];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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