From 2d4d83ee8ed1251035ad9fb9bdde30fac8490c85 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 4 Nov 2025 12:52:24 +0100 Subject: [PATCH] jasdlasdljk --- justfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/justfile b/justfile index 9cc41ad..2a5aa3f 100644 --- a/justfile +++ b/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