typst
This commit is contained in:
parent
df3bce833e
commit
81c473bca5
3 changed files with 35 additions and 0 deletions
10
flake.nix
10
flake.nix
|
@ -16,5 +16,15 @@
|
|||
path = ./rust;
|
||||
description = "A simple flake with an overlay for rust";
|
||||
};
|
||||
|
||||
c = {
|
||||
path = ./c;
|
||||
description = "Flake for c or cpp development";
|
||||
};
|
||||
|
||||
typst = {
|
||||
path = ./typst;
|
||||
description = "A flake for automatically compiling typst files";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
3
typst/.envrc
Normal file
3
typst/.envrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
use flake
|
||||
typst watch file.typ
|
||||
sioyek file.pdf
|
22
typst/flake.nix
Normal file
22
typst/flake.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs: inputs.utils.lib.eachSystem [
|
||||
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin"
|
||||
] (system: let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
typst
|
||||
sioyek
|
||||
typstfmt
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue