Compare commits
No commits in common. "68e61c63b01f45dfb34b80bd37c787c904b813c7" and "f3a7a87064e7721c91197feda092e0e20936db59" have entirely different histories.
68e61c63b0
...
f3a7a87064
36
default.nix
36
default.nix
|
@ -1,36 +0,0 @@
|
|||
{ 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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue