Refactor
This commit is contained in:
parent
e24d2df83f
commit
a4415a9c90
1 changed files with 8 additions and 8 deletions
16
flake.nix
16
flake.nix
|
@ -8,7 +8,6 @@
|
|||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
inherit (pkgs) lib;
|
||||
inherit (nixpkgs.lib) makeOverridable;
|
||||
inherit (pkgs.stdenvNoCC) mkDerivation;
|
||||
|
||||
interStaticFonts = mkDerivation {
|
||||
|
@ -27,11 +26,6 @@
|
|||
'';
|
||||
};
|
||||
|
||||
fontPaths = lib.concatStringsSep ":" [
|
||||
"${pkgs.inconsolata}/share/fonts/truetype/inconsolata"
|
||||
"${interStaticFonts}/share/fonts/truetype"
|
||||
];
|
||||
|
||||
shared-assets = mkDerivation {
|
||||
name = "talks-shared-assets";
|
||||
src = ./src;
|
||||
|
@ -51,8 +45,14 @@
|
|||
(python310.withPackages (p: with p; [ rst2pdf ]))
|
||||
];
|
||||
|
||||
mkTalk = makeOverridable (
|
||||
mkTalk = lib.makeOverridable (
|
||||
{ name, src }:
|
||||
let
|
||||
fontPaths = lib.concatStringsSep ":" [
|
||||
"${pkgs.inconsolata}/share/fonts/truetype/inconsolata"
|
||||
"${interStaticFonts}/share/fonts/truetype"
|
||||
];
|
||||
in
|
||||
mkDerivation {
|
||||
inherit name shared-assets src;
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
|||
runHook preBuild
|
||||
|
||||
mkdir $out
|
||||
cp slides.pdf $out
|
||||
cp *.pdf $out
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue