Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Editor/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<details>

<summary>Sample derivation</summary>

``` 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).

</details>

---

### 🍎 macOS ###
Expand Down