-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
27 lines (24 loc) · 840 Bytes
/
flake.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
25
26
27
{
description = "My resume, available in english and in french";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in with pkgs; {
defaultPackage = pkgs.stdenvNoCC.mkDerivation {
name = "Curriculum-Vitae";
buildInputs = [ texlive.combined.scheme-full ];
src = ./.;
buildPhase = "latexmk -pdf resume_en.tex resume_fr.tex";
installPhase = ''
mkdir -p $out
cp resume_en.pdf $out/
cp resume_fr.pdf $out/
'';
};
devShell = mkShell { buildInputs = [ texlive.combined.scheme-full ]; };
});
}