diff options
author | 2023-05-23 21:07:08 +0300 | |
---|---|---|
committer | 2023-05-23 21:07:08 +0300 | |
commit | b74d8dafbf0ddfc355aeab636834f42f2ea16ba6 (patch) | |
tree | 49719a4b31d25f5f6fe716de247b255efd914b9d /DEPENDENCIES.md | |
parent | 039debd251feef6225961455181db324bcc0c272 (diff) | |
download | iced-b74d8dafbf0ddfc355aeab636834f42f2ea16ba6.tar.gz iced-b74d8dafbf0ddfc355aeab636834f42f2ea16ba6.tar.bz2 iced-b74d8dafbf0ddfc355aeab636834f42f2ea16ba6.zip |
Create DEPENDENCIES.md
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; +} +``` |