cv/flake.nix

43 lines
936 B
Nix
Raw Normal View History

2022-05-24 04:04:17 +01:00
{
description = "";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
flake-utils,
...
}: let
inherit (flake-utils.lib) eachSystem defaultSystems;
in
{
}
// (eachSystem defaultSystems) (system: let
pkgs = import nixpkgs {inherit system;};
inherit (pkgs.lib.strings) concatMapStringsSep;
in {
devShell = pkgs.mkShell {
packages = with pkgs; [
texlive.combined.scheme-context
roboto
roboto-slab
roboto-mono
];
shellHook = let
font-path =
concatMapStringsSep ";" (pkg: "${pkg}/share/fonts/truetype/")
(with pkgs; [
roboto
roboto-slab
roboto-mono
]);
in ''
export OSFONTDIR='${font-path}'
mtxrun --script fonts --reload --force
'';
};
});
}