Compare commits
2 Commits
c0fdf37da9
...
984256a0fa
Author | SHA1 | Date | |
---|---|---|---|
984256a0fa | |||
2d5098909c |
14
build.sh
Normal file
14
build.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
source $stdenv/setup
|
||||
|
||||
# Compile Sass sources and get resume file
|
||||
mkdir build && cd build
|
||||
mkdir css && sassc $src/scss/style.scss css/style.css
|
||||
cp $src/resume.html resume.html
|
||||
|
||||
mkdir $out
|
||||
|
||||
# Save generated files
|
||||
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
|
43
flake.lock
Normal file
43
flake.lock
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
|
||||
}
|
15
flake.nix
Normal file
15
flake.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
{
|
||||
defaultPackage = import ./package.nix {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
10
package.nix
Normal file
10
package.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, sass ? pkgs.sassc, chromium ? pkgs.ungoogled-chromium }:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "daniel-resume";
|
||||
version = "0.1";
|
||||
builder = ./build.sh;
|
||||
buildInputs = [ sass chromium ];
|
||||
src = ./.;
|
||||
|
||||
FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = []; };
|
||||
}
|
Loading…
Reference in New Issue
Block a user