Skip to content

Commit

Permalink
feat: add Nix flake (#421)
Browse files Browse the repository at this point in the history
* feat: add flake.nix

* feat: update flake.nix for wayland compatibility

* fix: remove GL dependency

* deps: remove expat unused in latest version of iced
  • Loading branch information
lavafroth authored Sep 15, 2024
1 parent 50a27d6 commit a0b0d6e
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
57 changes: 57 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
);
}

0 comments on commit a0b0d6e

Please sign in to comment.