feat: initial commit

This commit is contained in:
Konstantin Fickel 2026-03-05 21:03:48 +01:00
commit 6bfef61ecc
Signed by: kfickel
GPG key ID: A793722F9933C1A5
31 changed files with 1864 additions and 0 deletions

44
flake.nix Normal file
View 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
];
};
};
}
);
}