diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-05-25 18:09:38 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-05-25 18:09:38 -0700 |
| commit | 22e7b10377a2a5672d5af6840a9a21e298315cfd (patch) | |
| tree | 5c294d104b75b7d87bdb907a7f295d9959aefa7c /users/fcuny/resume/default.nix | |
| parent | ref(blog): drop the flake configuration (diff) | |
| download | infra-22e7b10377a2a5672d5af6840a9a21e298315cfd.tar.gz | |
ref(resume): remove flake.nix
Integrate the resume with the rest of the repository, as I did for the
blog in the previous commit.
Added a script to copy the resume in the static directory of the blog.
Diffstat (limited to 'users/fcuny/resume/default.nix')
| -rw-r--r-- | users/fcuny/resume/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/users/fcuny/resume/default.nix b/users/fcuny/resume/default.nix new file mode 100644 index 0000000..86fbcf0 --- /dev/null +++ b/users/fcuny/resume/default.nix @@ -0,0 +1,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 = [ ]; + }; +} |
