2021-02-25 15:05:30 +01:00
|
|
|
{
|
|
|
|
description = "Ambroisie's CV";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
|
|
futils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, futils } @ inputs:
|
2022-06-20 14:42:42 +02:00
|
|
|
futils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
gnumake
|
|
|
|
(texlive.combine {
|
|
|
|
inherit (texlive)
|
|
|
|
scheme-small
|
|
|
|
# Build script
|
|
|
|
latexmk
|
|
|
|
# Extra packages needed
|
|
|
|
clearsans
|
|
|
|
fontaxes
|
|
|
|
textpos
|
|
|
|
ifmtarg
|
|
|
|
marvosym
|
|
|
|
;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells = {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
name = "cv";
|
|
|
|
inherit buildInputs;
|
|
|
|
};
|
|
|
|
};
|
2021-02-25 15:05:30 +01:00
|
|
|
|
2022-06-20 14:42:42 +02:00
|
|
|
packages = {
|
|
|
|
default = pkgs.stdenvNoCC.mkDerivation {
|
|
|
|
pname = "cv";
|
|
|
|
version = self.rev or "dirty";
|
|
|
|
src = ./.;
|
2021-02-25 15:05:30 +01:00
|
|
|
|
2022-06-20 14:42:42 +02:00
|
|
|
inherit buildInputs;
|
2021-02-25 15:05:30 +01:00
|
|
|
|
2022-06-20 14:42:42 +02:00
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
'';
|
2021-02-25 15:05:30 +01:00
|
|
|
|
2022-06-20 14:42:42 +02:00
|
|
|
installPhase = ''
|
|
|
|
install -Dm644 en.pdf $out/share/en.pdf
|
|
|
|
install -Dm644 fr.pdf $out/share/fr.pdf
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2021-02-25 15:05:30 +01:00
|
|
|
}
|