diff --git a/.rev b/.rev new file mode 100644 index 0000000..0254acb --- /dev/null +++ b/.rev @@ -0,0 +1 @@ +UNSTABLE_DO_NOT_USE diff --git a/cv.pdf b/cv.pdf index d7ffc83..a253e4a 100644 Binary files a/cv.pdf and b/cv.pdf differ diff --git a/cv.typ b/cv.typ index 306ed64..087aba7 100644 --- a/cv.typ +++ b/cv.typ @@ -76,10 +76,6 @@ Nix and NixOS, Docker and NixOS based service deployment and system administration. ] -#cv-line[Other][ - Git and Mercurial Version Control. -] - = Papers == Preprints diff --git a/flake.nix b/flake.nix index faf0230..5df18c4 100644 --- a/flake.nix +++ b/flake.nix @@ -54,11 +54,11 @@ dest = "icons"; src = "${inputs.font-awesome}/svgs/regular"; } + { + src = ./.rev; + dest = ".rev"; + } ]; - - XDG_CACHE_HOME = typstPackagesCache; - - SOURCE_DATE_EPOCH = builtins.toString self.lastModified; }; typstPackagesSrc = "${inputs.typst-packages}/packages"; @@ -79,6 +79,18 @@ commonArgs // { inherit src; + + XDG_CACHE_HOME = typstPackagesCache; + + SOURCE_DATE_EPOCH = builtins.toString self.lastModified; + + preBuild = + if (self ? rev) then + '' + echo ${self.rev} >> .rev + '' + else + ""; } ); @@ -88,6 +100,18 @@ commonArgs // { inherit src; + + XDG_CACHE_HOME = typstPackagesCache; + + SOURCE_DATE_EPOCH = builtins.toString self.lastModified; + + preBuild = + if (self ? rev) then + '' + echo ${self.rev} >> .rev + '' + else + ""; } ); diff --git a/template.typ b/template.typ index d92f908..4e99d4e 100644 --- a/template.typ +++ b/template.typ @@ -1,5 +1,7 @@ #import "@preview/fontawesome:0.5.0": * +#let git_rev = read("./.rev", encoding: "utf8") + #let _cv-line(left, right, ..args) = { set block(below: 0pt) table( @@ -144,6 +146,8 @@ #v(1fr, weak: false) #name\ #datetime.today().display("[month repr:long] [day], [year]") + + #text(size: 8pt)[Built from revision #git_rev] ] ]