-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
25 lines (24 loc) · 851 Bytes
/
flake.nix
File metadata and controls
25 lines (24 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
inputs = {
fenix = {
url = "github:nix-community/fenix/monthly";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, fenix, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
f = fenix.packages.${system};
tc = f.complete.toolchain;
llvm = pkgs.llvmPackages_12;
in {
devShells.default = pkgs.mkShell {
buildInputs = [ tc f.rust-analyzer llvm.llvm llvm.clang llvm.libclang pkgs.libffi pkgs.libxml2 pkgs.xdot ];
LIBCLANG_PATH = "${llvm.libclang.lib}/lib/";
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [stdenv.cc.cc.lib libffi zlib ncurses]}";
};
});
}