Compare commits

...

3 Commits

Author SHA1 Message Date
Cadey Ratio 68e61c63b0 no
continuous-integration/drone/push Build is failing Details
Signed-off-by: Christine Dodrill <me@christine.website>
2021-01-02 15:40:52 -05:00
Cadey Ratio 8a5a195e82 yep
Signed-off-by: Christine Dodrill <me@christine.website>
2021-01-02 15:40:43 -05:00
Cadey Ratio 77aecbed96 build with nix
Signed-off-by: Christine Dodrill <me@christine.website>
2021-01-02 15:38:30 -05:00
1 changed files with 36 additions and 0 deletions

36
default.nix Normal file
View File

@ -0,0 +1,36 @@
{ pkgs ? import <nixpkgs> { } }:
let
nur = import (builtins.fetchTarball
"https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
tex = with pkgs;
texlive.combine { inherit (texlive) scheme-medium bitter titlesec; };
version = "devel";
in pkgs.stdenv.mkDerivation {
pname = "tulpanomicon";
inherit version;
src = ./.;
phases = "buildPhase installPhase";
buildInputs = with pkgs; [
calibre
mdbook
nur.repos.mic92.pandoc-bin
tex
];
buildPhase = ''
cp -rf $src/src .
cp -rf $src/book.toml .
mkdir book
chmod -R a+w .
mdbook build
cd ./src && ./build.sh && cd ..
'';
installPhase = ''
mkdir -p $out
cp -vrf book/* $out
'';
}