created a tiny CLI that takes a typst source code as input and return the highlighted html version of the source code

This commit is contained in:
didier amyot committed 2023-04-29 20:37:33 -04:00
commit a49a09cc0a
6 files changed
+1053

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
{
inputs = {
naersk.url = "github:nix-community/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils, naersk }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
PROJECT_ROOT = builtins.toString ./.;
in
{
defaultPackage = naersk-lib.buildPackage ./.;
defaultApp = utils.lib.mkApp {
drv = self.defaultPackage."${system}";
};
packages.development-environment =
with pkgs; buildEnv {
name = "IntelliJ development environment";
paths = [
# something that work.. ish
rustc
cargo
rustfmt
rustPlatform.rustcSrc
gcc
cargo-tarpaulin
];
};
devShell = with pkgs; mkShell {
buildInputs = [cargo
rustc
rustfmt
pre-commit
rustPackages.clippy
cargo-tarpaulin
deno
foreman
postgresql];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
});
}