diff options
| -rw-r--r-- | modules/by-name/nv/nvim/plgs/vim-tex/default.nix | 2 | ||||
| -rw-r--r-- | pkgs/by-name/no/notify-run/package.nix | 15 | ||||
| -rwxr-xr-x | scripts/why-depends | 13 |
3 files changed, 22 insertions, 8 deletions
diff --git a/modules/by-name/nv/nvim/plgs/vim-tex/default.nix b/modules/by-name/nv/nvim/plgs/vim-tex/default.nix index 739b69d9..9ee657c3 100644 --- a/modules/by-name/nv/nvim/plgs/vim-tex/default.nix +++ b/modules/by-name/nv/nvim/plgs/vim-tex/default.nix @@ -18,7 +18,7 @@ in { opts.conceallevel = 0; plugins.vimtex = { - enable = true; + enable = false; settings = { view_method = "zathura"; quickfix_mode = -1; diff --git a/pkgs/by-name/no/notify-run/package.nix b/pkgs/by-name/no/notify-run/package.nix index 7bf07c1a..1f9337be 100644 --- a/pkgs/by-name/no/notify-run/package.nix +++ b/pkgs/by-name/no/notify-run/package.nix @@ -9,22 +9,33 @@ # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. { rustPlatform, + lib, libnotify, + makeWrapper, }: -rustPlatform.buildRustPackage { +rustPlatform.buildRustPackage (finalAttrs: { pname = "notify-run"; version = "0.1.0"; buildInputs = [ libnotify ]; + nativeBuildInputs = [ + makeWrapper + ]; src = ./.; cargoLock = { lockFile = ./Cargo.lock; }; + postInstall = '' + # NOTE: We cannot clear the path, because we need access to the programs to start. <2025-12-03> + wrapProgram $out/bin/notify-run \ + --prefix PATH : ${lib.makeBinPath finalAttrs.buildInputs} + ''; + meta = { mainProgram = "notify-run"; }; -} +}) diff --git a/scripts/why-depends b/scripts/why-depends index 59f8d25b..01471ce2 100755 --- a/scripts/why-depends +++ b/scripts/why-depends @@ -4,11 +4,14 @@ package="$1" version="$2" shift 2 -host="$(hostname)" - -fd "$package-$version" /nix/store --type directory | while read -r dir; do - nix why-depends "$@" ".#nixosConfigurations.$host.config.system.build.toplevel" "$dir" -done +if [ "$1" = "--running" ]; then + shift 1 + base="/run/current-system" +else + host="$(hostname)" + base=".#nixosConfigurations.$host.config.system.build.toplevel" +fi +fd "$package-$version$" /nix/store --type directory --threads 1 --exec nix why-depends "$@" "$base" # vim: ft=sh |
