From 073ede572d20a90a63fadcae48a1731a474d519c Mon Sep 17 00:00:00 2001 From: Fireye Date: Tue, 20 Jan 2026 16:53:15 -0700 Subject: [PATCH 1/2] Add NixOS specific paths --- Editor/Utils.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Editor/Utils.cs b/Editor/Utils.cs index 90d26e7..9149bf4 100644 --- a/Editor/Utils.cs +++ b/Editor/Utils.cs @@ -102,7 +102,9 @@ public static string GetLauncherPath() "/opt/nvimunity/nvimunity.sh", Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads", "NvimUnity.AppImage"), Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local/bin/nvimunity"), - "/Applications/NvimUnity.app/Contents/MacOS/nvimunity" + "/Applications/NvimUnity.app/Contents/MacOS/nvimunity", + "/run/current-system/sw/bin/nvimunity", + Path.Combine("/etc/profiles/per-user", Environment.UserName, "bin/nvimunity") }; return fallbackPaths.FirstOrDefault(File.Exists); From 28cd498d9395acf04b67c0f92bad311351b0dc07 Mon Sep 17 00:00:00 2001 From: Fireye Date: Tue, 20 Jan 2026 16:53:33 -0700 Subject: [PATCH 2/2] Add NixOS installation to readme --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/README.md b/README.md index daa0824..9a4d79b 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,50 @@ After installing, run with `nvimunity` or find it in your applications. Since the AppImage doesn't seem to work for many people, simply make a file called 'nvimunity.sh' in your $PATH and paste [this](https://github.com/apyra/nvim-unity-standalone/blob/master/nvim-unity-linux/appimage/usr/bin/nvimunity.sh) into it, then, chmod +x it and launch it. +- **NixOS** + + NixOS users can package the provided [nvimunity.sh](https://github.com/apyra/nvim-unity-standalone/blob/master/nvim-unity-linux/appimage/usr/bin/nvimunity.sh) as a derivation using the sample provided here. When duplicating the file contents, make sure to remove the provied `#!/bin/bash` header. + +
+ + Sample derivation + + ``` nix + { + lib, + makeWrapper, + runCommand, + bash, + jq, + }: + let + # Make sure to place nvimunity in the same directory as this derivation, or adjust the following path + src = ./nvimunity.sh: + binName = "nvimunity"; + deps = [ + bash + jq + ]; + in + runCommand "${binName}" + { + nativeBuildInputs = [ makeWrapper ]; + meta = { + mainProgram = "${binName}"; + }; + } + '' + mkdir -p $out/bin + install -m +x ${src} $out/bin/${binName} + wrapProgram $out/bin/${binName} \ + --prefix PATH : ${lib.makeBinPath deps} + '' + ``` + + To include the derivation make sure to add `(callPackage ./nvimunity.nix {})`to your system or user packages (assuming that is the correct filepath). + +
+ --- ### 🍎 macOS ###