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:
commit
a49a09cc0a
6 files changed
+1053
No files matched your search
@@ -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;
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user