diff options
author | 2023-05-30 01:42:18 +0200 | |
---|---|---|
committer | 2023-05-30 01:42:18 +0200 | |
commit | 8ff2e0178ff9e53ab5cff9bdbc7c834d277a6a93 (patch) | |
tree | 15fe74a4167a4f5cb5be38eb2030e1dbeeb4bf8f /DEPENDENCIES.md | |
parent | 75110b9c0e82f37f3c75ce276216db5dbcb4ff1b (diff) | |
parent | 490cc3d55889f3be20d94b295d4a2d593aa102ee (diff) | |
download | iced-8ff2e0178ff9e53ab5cff9bdbc7c834d277a6a93.tar.gz iced-8ff2e0178ff9e53ab5cff9bdbc7c834d277a6a93.tar.bz2 iced-8ff2e0178ff9e53ab5cff9bdbc7c834d277a6a93.zip |
Merge pull request #1859 from RGBCube/patch-1
Add Nix instructions to README
Diffstat (limited to 'DEPENDENCIES.md')
-rw-r--r-- | DEPENDENCIES.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md new file mode 100644 index 00000000..809371cb --- /dev/null +++ b/DEPENDENCIES.md @@ -0,0 +1,33 @@ +# Dependencies + +Iced requires some system dependencies to work, and not +all operating systems come with them installed. + +You can follow the provided instructions for your system to +get them, if your system isn't here, add it! + +## NixOS + +You can add this `shell.nix` to your project and use it by running `nix-shell`: + +```nix +{ pkgs ? import <nixpkgs> {} }: + +pkgs.mkShell rec { + buildInputs = with pkgs; [ + expat + fontconfig + freetype + freetype.dev + libGL + pkgconfig + xorg.libX11 + xorg.libXcursor + xorg.libXi + xorg.libXrandr + ]; + + LD_LIBRARY_PATH = + builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" buildInputs; +} +``` |