From 039debd251feef6225961455181db324bcc0c272 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Sat, 20 May 2023 20:23:00 +0300 Subject: Add Nix instructions to README --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index c72fd770..16ca9926 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,40 @@ __Iced is currently experimental software.__ [Take a look at the roadmap], [check out the issues]: https://github.com/iced-rs/iced/issues [feel free to contribute!]: #contributing--feedback +## 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 {} }: + +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; +} +``` + ## Installation Add `iced` as a dependency in your `Cargo.toml`: -- cgit From b74d8dafbf0ddfc355aeab636834f42f2ea16ba6 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Tue, 23 May 2023 21:07:08 +0300 Subject: Create DEPENDENCIES.md --- DEPENDENCIES.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 DEPENDENCIES.md 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 {} }: + +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; +} +``` -- cgit From 490cc3d55889f3be20d94b295d4a2d593aa102ee Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Tue, 23 May 2023 21:07:29 +0300 Subject: Update README.md --- README.md | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/README.md b/README.md index 16ca9926..c72fd770 100644 --- a/README.md +++ b/README.md @@ -63,40 +63,6 @@ __Iced is currently experimental software.__ [Take a look at the roadmap], [check out the issues]: https://github.com/iced-rs/iced/issues [feel free to contribute!]: #contributing--feedback -## 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 {} }: - -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; -} -``` - ## Installation Add `iced` as a dependency in your `Cargo.toml`: -- cgit