-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1859 from RGBCube/patch-1
Add Nix instructions to README
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
``` |