added xz support

This commit is contained in:
specCon18 2023-09-02 15:11:48 -04:00
parent 3dc2c9cc5f
commit 670a380cd5
8 changed files with 136 additions and 66 deletions

31
flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
description = "Spec's NixOS-config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.rust = pkgs.mkShell{
buildInputs = with pkgs; [
cargo
cargo-watch
rustc
just
rustup
clippy
lolcat
rust-analyzer
xz # Add xz (liblzma) to the build inputs
];
# Add a shellHook to modify PKG_CONFIG_PATH
shellHook = ''
export PKG_CONFIG_PATH="${pkgs.xz}/lib/pkgconfig:$PKG_CONFIG_PATH"
'';
};
};
}