-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
24 lines (24 loc) · 865 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
with import <nixpkgs> {};
let
pandoc = import (fetchTarball {
url = "https://github.com/czerwonamaupa/pandoc/archive/413af81436a09f554a2ee575f063d8abed15ecd6.tar.gz";
sha256 = "1q7bc087ipp8bb0gf9yr29wh0mgvrb7ipsx3gcpi94ann2knykak";
}) {};
pythonInputs = python3.withPackages (pkgs: with pkgs; [pandocfilters pyphen]);
drv = stdenv.mkDerivation {
pname = "New-Introductory-Lectures-On-Psycho-Analysis";
version = "v1.5";
src = nix-gitignore.gitignoreSource [] ./.;
buildInputs = [ pandoc kindlegen pythonInputs ];
installPhase = ''
mkdir -p $out/web
cp -r {index.html,web.css,fonts} $out/web
mkdir -p $out/ebooks
cp New-Introductory-Lectures-On-Psycho-Analysis.{epub,mobi} $out/ebooks
'';
};
shell = mkShell {
inputsFrom = [ drv ];
buildInputs = [ entr ];
};
in drv // { inherit shell; }