presentation env flake

This commit is contained in:
Jan Kowalczyk
2024-12-05 16:09:15 +01:00
parent ddf4e4aa36
commit 4b16547ef6
2 changed files with 97 additions and 0 deletions

57
presentation/flake.lock generated Normal file
View File

@@ -0,0 +1,57 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 0,
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
"path": "/nix/store/4cpakzyvfw1rmm9v5i3387x6jd2h1v86-source",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

40
presentation/flake.nix Normal file
View File

@@ -0,0 +1,40 @@
{
description = "Build LaTeX document with minted";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
latex-packages = with pkgs; [
texlive.combined.scheme-full
which
python39Packages.pygments
];
dev-packages = with pkgs; [
texlab
zathura
wmctrl
];
in
{
devShell = pkgs.mkShell {
buildInputs = [
latex-packages
dev-packages
];
};
}
);
}