This commit is contained in:
twoneis 2024-08-12 21:36:35 +02:00
parent df3bce833e
commit 81c473bca5
3 changed files with 35 additions and 0 deletions

View file

@ -16,5 +16,15 @@
path = ./rust; path = ./rust;
description = "A simple flake with an overlay for 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
View file

@ -0,0 +1,3 @@
use flake
typst watch file.typ
sioyek file.pdf

22
typst/flake.nix Normal file
View 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
];
};
});
}