jasdlasdljk
This commit is contained in:
13
justfile
13
justfile
@@ -50,6 +50,19 @@ NIX_EVAL_OPTS := "--log-format raw --option warn-dirty false"
|
||||
|
||||
# === info helpers ===
|
||||
|
||||
[no-cd]
|
||||
eval-meta $attrpath=`just _a_package`:
|
||||
#!/usr/bin/env -S bash -euo pipefail
|
||||
main() {
|
||||
nix eval {{NIX_EVAL_OPTS}} --file default.nix "$attrpath".meta --json
|
||||
# nix eval {{NIX_EVAL_OPTS}} --impure --expr "with import ./. {}; { inherit ($attrpath) pname version drvPath meta; outPath_ = $attrpath.outPath; }" --json
|
||||
}
|
||||
if [[ -t 1 ]] && command -v fx >/dev/null; then
|
||||
main | FX_COLLAPSED=true fx
|
||||
else
|
||||
main
|
||||
fi
|
||||
|
||||
list-packages +$cut_args="-c1-": _packages_json
|
||||
#!/usr/bin/env -S bash -euo pipefail
|
||||
cachefile=/tmp/nixpkgs-packages.json.tsv
|
||||
|
||||
Reference in New Issue
Block a user