blob: 86fbcf01e6600af9f8052b758dd1ccb1869c26f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ pkgs, ... }:
pkgs.stdenv.mkDerivation rec {
name = "resume";
src = ./.;
nativeBuildInputs = [ pkgs.pandoc pkgs.git ];
installPhase = ''
mkdir -p $out
pandoc --self-contained --css styles/resume.css --from org --to html --output $out/resume.html resume.org
'';
publish = pkgs.writers.writeBashBin "publish" ''
set -ueo pipefail
export PATH=${pkgs.lib.makeBinPath [ pkgs.pandoc pkgs.git ]}
cd $(git rev-parse --show-toplevel)/users/fcuny/resume
out=$(git rev-parse --show-toplevel)/users/fcuny/blog/static/resume.html
pandoc --self-contained --css styles/resume.css --from org --to html --output $out resume.org
'';
meta = with pkgs.lib; {
description = "franck cuny's resume";
homepage = "https://fcuny.net/resume.html";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ ];
};
}
|