54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
inputs.nixpkgs.url = "https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz";
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
...
|
|
}@inputs:
|
|
let
|
|
forSystems =
|
|
systems: f:
|
|
inputs.nixpkgs.lib.genAttrs systems (
|
|
system:
|
|
f {
|
|
inherit system;
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
lib = nixpkgs.legacyPackages.${system}.lib;
|
|
}
|
|
);
|
|
forAllSystems = forSystems nixpkgs.lib.systems.flakeExposed;
|
|
in
|
|
{
|
|
inherit inputs;
|
|
|
|
devShells = forAllSystems (
|
|
{ pkgs, ... }:
|
|
{
|
|
default = pkgs.mkShellNoCC {
|
|
packages = with pkgs; [
|
|
pandoc
|
|
#haskellPackages.pandoc-crossref
|
|
#pandoc-imagine
|
|
#haskellPackages.pandoc-plot
|
|
|
|
(texlive.combine {
|
|
inherit (texlive)
|
|
scheme-small
|
|
#latexmk
|
|
;
|
|
})
|
|
|
|
];
|
|
# stops /etc/profile.d/nix-daemon.sh on Arch from clobbering this shell
|
|
__ETC_PROFILE_NIX_SOURCED = 1;
|
|
# unbreaks locale for lualatex
|
|
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
|
};
|
|
}
|
|
);
|
|
|
|
};
|
|
}
|