chore: add nix
This commit is contained in:
parent
0a16d339a4
commit
499f13a634
7 changed files with 334 additions and 0 deletions
31
nix/shell.nix
Normal file
31
nix/shell.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, rustToolchain }:
|
||||
pkgs.mkShell {
|
||||
name = "cosmic-greeter-devshell";
|
||||
packages = builtins.attrValues {
|
||||
inherit
|
||||
rustToolchain
|
||||
;
|
||||
inherit (pkgs)
|
||||
rust-analyzer-unwrapped
|
||||
nixd
|
||||
libxkbcommon
|
||||
dav1d
|
||||
libinput
|
||||
linux-pam
|
||||
gcc
|
||||
glibc
|
||||
cmake
|
||||
;
|
||||
inherit (pkgs.llvmPackages)
|
||||
libclang
|
||||
llvm
|
||||
;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
|
||||
RUST_SRC_PATH = "${rustToolchain}/lib/rustlib/src/rust/library";
|
||||
LLVM_CONFIG_PATH = "${pkgs.llvmPackages.llvm}/bin/llvm-config";
|
||||
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
||||
BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.linux-pam}/include -I${pkgs.glibc.dev}/include";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue