feat: add Nix flake (#421)

* feat: add flake.nix

* feat: update flake.nix for wayland compatibility

* fix: remove GL dependency

* deps: remove expat unused in latest version of iced
This commit is contained in:
Himadri Bhattacharjee 2024-09-15 19:54:46 +05:30 committed by GitHub
commit a0b0d6e178
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 94 additions and 0 deletions

37
flake.nix Normal file
View file

@ -0,0 +1,37 @@
{
description = "devshell for uad-ng";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShells.default = pkgs.mkShell {
packages = with pkgs;
[
rustc
cargo
clang
pkg-config
mold
android-tools
];
LD_LIBRARY_PATH = "${nixpkgs.lib.makeLibraryPath [
pkgs.fontconfig
pkgs.freetype
pkgs.libglvnd
pkgs.xorg.libX11
pkgs.xorg.libXcursor
pkgs.xorg.libXi
pkgs.xorg.libXrandr
pkgs.libxkbcommon
pkgs.wayland
]}";
LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";
};
}
);
}