Compare commits

..

2 Commits

Author SHA1 Message Date
984256a0fa Add flake lockfile 2023-02-20 05:36:19 +00:00
2d5098909c Add a nix expression for building the resume. 2023-02-20 04:20:58 +00:00
3 changed files with 46 additions and 3 deletions

View File

@@ -11,4 +11,4 @@ mkdir $out
cp resume.html $out
mkdir $out/css && cp ./css/style.css $out/css
chromium --disable-gpu --headless --print-to-pdf="$out/Resume-Danila-Fedorin.pdf" "file://${pwd}/resume.html"
chromium --disable-gpu --headless --print-to-pdf="$out/Resume-Danila-Fedorin.pdf" file://$(pwd)/resume.html

43
flake.lock generated Normal file
View File

@@ -0,0 +1,43 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1676283394,
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1676718858,
"narHash": "sha256-giQecvcifVLNHCC9lMfTGP09tNxXhOMw+d/aql7MhRw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e6d5772f3515b8518d50122471381feae7cbae36",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-22.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -1,9 +1,9 @@
{ pkgs, sass ? pkgs.sassc, wkhtmltopdf ? pkgs.wkhtmltopdf }:
{ pkgs, sass ? pkgs.sassc, chromium ? pkgs.ungoogled-chromium }:
pkgs.stdenv.mkDerivation {
name = "daniel-resume";
version = "0.1";
builder = ./build.sh;
buildInputs = [ sass wkhtmltopdf ];
buildInputs = [ sass chromium ];
src = ./.;
FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = []; };