From 32a0bfd63c5e8a919edd27dca8796bee4f0f430d Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 2 Dec 2024 01:22:26 +0300 Subject: [PATCH] Bash: Add nix_depends. --- home/program/bash/module/Nix.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/program/bash/module/Nix.nix b/home/program/bash/module/Nix.nix index 9f546589..6767a83b 100644 --- a/home/program/bash/module/Nix.nix +++ b/home/program/bash/module/Nix.nix @@ -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 [COMMAND] function nixpkgs_run() {