28 lines
558 B
Nix
28 lines
558 B
Nix
{
|
|
description = "Shell environment for building this package";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
}: let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
devShells.${system}.default =
|
|
pkgs.mkShell rec
|
|
{
|
|
buildInputs = with pkgs; [
|
|
pkg-config
|
|
probe-rs
|
|
];
|
|
|
|
LD_LIBRARY_PATH =
|
|
builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" buildInputs;
|
|
};
|
|
};
|
|
}
|