Compare commits
2 Commits
auto-build
...
984256a0fa
| Author | SHA1 | Date | |
|---|---|---|---|
| 984256a0fa | |||
| 2d5098909c |
2
build.sh
2
build.sh
@@ -11,4 +11,4 @@ mkdir $out
|
|||||||
cp resume.html $out
|
cp resume.html $out
|
||||||
mkdir $out/css && cp ./css/style.css $out/css
|
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
43
flake.lock
generated
Normal 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
|
||||||
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
{ pkgs, sass ? pkgs.sassc, wkhtmltopdf ? pkgs.wkhtmltopdf }:
|
{ pkgs, sass ? pkgs.sassc, chromium ? pkgs.ungoogled-chromium }:
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "daniel-resume";
|
name = "daniel-resume";
|
||||||
version = "0.1";
|
version = "0.1";
|
||||||
builder = ./build.sh;
|
builder = ./build.sh;
|
||||||
buildInputs = [ sass wkhtmltopdf ];
|
buildInputs = [ sass chromium ];
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = []; };
|
FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = []; };
|
||||||
|
|||||||
Reference in New Issue
Block a user