@@ -7,14 +7,15 @@
|
||||
url = "github:nix-community/fenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
outputs = { self, nixpkgs, flake-utils, fenix }:
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils, fenix }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
toolchain = fenix.packages.${system}.fromToolchainFile {
|
||||
file = ./rust-toolchain.toml;
|
||||
sha256 = "sha256-gh/xTkxKHL4eiRXzWv8KP7vfjSk61Iq48x47BEDFgfk=";
|
||||
sha256 = "sha256-A1abGIbOtcBSdrUMhDGrER3pRM1hQP4fp9gh3Y4PKc8=";
|
||||
};
|
||||
in
|
||||
{
|
||||
@@ -24,7 +25,7 @@
|
||||
toolchain
|
||||
clang
|
||||
llvmPackages.bintools
|
||||
typst
|
||||
nixpkgs-unstable.legacyPackages.${pkgs.system}.typst
|
||||
];
|
||||
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages_latest.libclang.lib ];
|
||||
RUSTFLAGS = (builtins.map (a: ''-L ${a}/lib'') []);
|
||||
|
||||
Reference in New Issue
Block a user