repo: switch to nu for just

This commit is contained in:
multisn8 2024-01-10 23:21:33 +01:00
parent 70402c25ba
commit e3d4c88921
Signed by: multisamplednight
GPG key ID: C81EF9B053977241
5 changed files with 32 additions and 28 deletions

View file

@ -1,5 +1,5 @@
#import "../template.typ": conf #import "../template.typ": conf
#import "graphics.typ" #import "util/graphics.typ"
#import graphics: arrow #import graphics: arrow
#show: conf.with( #show: conf.with(

View file

@ -244,7 +244,7 @@
}) })
// literally just for standalone display of the graphics alone // literally just for standalone display of the graphics alone
#import "../template.typ": conf #import "../../template.typ": conf
#show: conf #show: conf
#set page(width: auto, height: auto) #set page(width: auto, height: auto)

View file

@ -8,11 +8,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1699541523, "lastModified": 1704835383,
"narHash": "sha256-Rv0ryuBC5KtA/3YqwIEe58Tabu71qSGnGcGRd67mMUY=", "narHash": "sha256-SoC0rYR9iHW0dVOEmxNEfa8vk9dTK86P5iXTgHafmwM=",
"owner": "cachix", "owner": "cachix",
"repo": "devenv", "repo": "devenv",
"rev": "14fdefc0bb80c3d6f3a18a491e33429b4064c371", "rev": "18ef9849d1ecac7a9a7920eb4f2e4adcf67a8c3a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -27,11 +27,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1699510895, "lastModified": 1704867811,
"narHash": "sha256-eaOkJUvHeYNW/xEoRotz0rHkKihKoQdWB1ctX4q1MTQ=", "narHash": "sha256-pG4O1vPpNSMjz7p/5x+/OH4tXC0thzAPbJ55kI/W5dU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "8eeef23f2c8d092227af40eff98afe5b41891e3b", "rev": "93e89638c15512db65e931f26ce36edf8cfbb4a5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -186,11 +186,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1699099776, "lastModified": 1704538339,
"narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=", "narHash": "sha256-1734d3mQuux9ySvwf6axRWZRBhtcZA9Q8eftD6EZg6U=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb", "rev": "46ae0210ce163b3cba6c7da08840c1d63de9c701",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -202,16 +202,16 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1699291058, "lastModified": 1704722960,
"narHash": "sha256-5ggduoaAMPHUy4riL+OrlAZE14Kh7JWX4oLEs22ZqfU=", "narHash": "sha256-mKGJ3sPsT6//s+Knglai5YflJUF2DGj7Ai6Ynopz0kI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "41de143fda10e33be0f47eab2bfe08a50f234267", "rev": "317484b1ead87b9c1b8ac5261a8d2dd748a0492d",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-23.05", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -231,11 +231,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1688056373, "lastModified": 1704725188,
"narHash": "sha256-2+SDlNRTKsgo3LBRiMUcoEUb6sDViRNQhzJquZ4koOI=", "narHash": "sha256-qq8NbkhRZF1vVYQFt1s8Mbgo8knj+83+QlL5LBnYGpI=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "5843cf069272d92b60c3ed9e55b7a8989c01d4c7", "rev": "ea96f0c05924341c551a797aaba8126334c505d2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -255,11 +255,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1699451299, "lastModified": 1704833483,
"narHash": "sha256-7HJMyp62fCS6/aCCCASz8MdJM2/M8d1pBNukyLmPdwA=", "narHash": "sha256-Ox01mpYmjapNYaqOu4fMS/4Ma9NLd2rVNz6d4rJmcf4=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "7059ae2fc2d55fa20d7e2671597b516431129445", "rev": "ae6e73772432cfe35bb0ff6de6fdcfa908642b67",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,6 +1,6 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default"; systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv"; devenv.url = "github:cachix/devenv";
fenix.url = "github:nix-community/fenix"; fenix.url = "github:nix-community/fenix";
@ -36,7 +36,7 @@
rustfmt.enable = true; rustfmt.enable = true;
}; };
packages = []; packages = with pkgs; [just nushell typst];
}) })
]; ];
}; };

View file

@ -1,6 +1,10 @@
docs: docs:
for doc in $(fd '.typ' './docs' --exclude 'template*' --exclude 'util*'); do \ #!/usr/bin/env nu
typst compile $doc --root=docs; \ glob **/*.typ --exclude [**/{template.typ,util/**}] | par-each { |source|
mv "$(dirname $doc)/$(basename $doc .typ).pdf" docs/compiled/; \ typst compile $source --root=docs
done let pdf = (
(echo $source | path dirname)
| path join (echo $source | path basename | str replace ".typ" ".pdf")
)
mv $pdf docs/compiled
} | ignore