diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-02 14:56:17 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-02 14:56:17 +0200 |
commit | 2698ed0c80a90e6c2143e04513d3baaa67e924a6 (patch) | |
tree | 1d91398663418c77cadc69086823d513314a4821 | |
parent | d84a32c77abc92fd85b787ef5d805105893d5419 (diff) |
Ignore result files and add custom nix build+install phases
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .nix/derivation.nix | 13 |
2 files changed, 12 insertions, 2 deletions
@@ -1 +1,2 @@ *.pdf +result* diff --git a/.nix/derivation.nix b/.nix/derivation.nix index 93437eb..abf51a8 100644 --- a/.nix/derivation.nix +++ b/.nix/derivation.nix @@ -9,9 +9,18 @@ stdenv.mkDerivation { pname = "kel-cv"; version = "0.0.0"; + src = ./..; + nativeBuildInputs = [ typst - ]; + ]; - src = ./..; + buildPhase = '' + typst compile --root . templates/cv.typ ./cv.pdf + ''; + + installPhase = '' + mkdir -p $out + mv cv.pdf $out/ + ''; } |