Bash: Add nix_depends.

This commit is contained in:
Dmitry Voronin 2024-12-02 01:22:26 +03:00
parent f863395d03
commit 32a0bfd63c
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -30,6 +30,10 @@
SHELL_NAME="''${tag}" NIXPKGS_ALLOW_UNFREE=1 nix shell --impure ''${pkgs[@]}
}
function nix_depends() {
nix why-depends /run/current-system nixpkgs#''${1}
}
# Run stuff directrly from Nixpks.
# Usage: nixpkgs_run <REV> <PACKAGE> [COMMAND]
function nixpkgs_run() {