feat: initial commit
This commit is contained in:
commit
6bfef61ecc
31 changed files with 1864 additions and 0 deletions
44
flake.nix
Normal file
44
flake.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
description = "Build my CV";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
out_name = "CV_KonstantinFickel_SoftwareEngineer.pdf";
|
||||
|
||||
cv = pkgs.stdenv.mkDerivation {
|
||||
name = "cv";
|
||||
src = ./.;
|
||||
buildInputs = [pkgs.python312Packages.weasyprint];
|
||||
buildPhase = ''
|
||||
${pkgs.python312Packages.weasyprint}/bin/weasyprint cv.html ${out_name}
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
mv ./${out_name} $out
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
inherit cv;
|
||||
default = cv;
|
||||
};
|
||||
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
python312Packages.weasyprint
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue