-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable running on NixOS (#1166)
Allows the console be built and run on NixOS. I could not get the WebView to work and attempting to load it would cause the process to crash, so additional work was needed to avoid loading it altogether. Basic usage on NixOS: ``` nix-shell cargo make run ```
- Loading branch information
Jason Mobarak
authored
Aug 31, 2023
1 parent
661bb03
commit a9cedf6
Showing
3 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
|
||
(pkgs.buildFHSUserEnv { | ||
name = "swift-toolbox"; | ||
targetPkgs = pkgs: (with pkgs; | ||
[ imagemagick | ||
libxcrypt-legacy | ||
glib | ||
capnproto | ||
openssl | ||
pkg-config | ||
cmake | ||
clang | ||
libglvnd | ||
libxkbcommon | ||
nss | ||
nspr | ||
wayland | ||
fontconfig | ||
freetype | ||
expat | ||
alsa-lib | ||
dbus | ||
libkrb5 | ||
zlib | ||
gdb | ||
]) ++ (with pkgs.xorg; | ||
[ libX11 | ||
libXcursor | ||
libXrandr | ||
libxkbfile | ||
libXcomposite | ||
libXdamage | ||
libXext | ||
libXfixes | ||
libXrender | ||
libXtst | ||
libxcb | ||
xcbutilkeysyms | ||
xcbutilimage | ||
xcbutilwm | ||
xcbutilrenderutil | ||
libXi | ||
libxshmfence | ||
]); | ||
profile = '' | ||
unset QT_QPA_PLATFORMTHEME | ||
unset QT_STYLE_OVERRIDE | ||
unset QTWEBKIT_PLUGIN_PATH | ||
unset QT_PLUGIN_PATH | ||
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig" | ||
export LIBCLANG_PATH="${pkgs.llvmPackages_11.libclang.lib}/lib" | ||
''; | ||
runScript = "bash"; | ||
}).env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters