2024-03-10 11:42:33 +03:00
|
|
|
{
|
2024-11-04 04:37:29 +03:00
|
|
|
description = "Rust shell env.";
|
2024-03-10 11:42:33 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
};
|
2024-03-10 11:42:33 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
outputs = { self, nixpkgs } @inputs: let
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
system = "x86_64-linux";
|
|
|
|
in {
|
|
|
|
devShell.${system} = pkgs.mkShell rec {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
cargo
|
|
|
|
cmake
|
|
|
|
fontconfig
|
|
|
|
pkg-config
|
|
|
|
rust-analyzer
|
|
|
|
rustc
|
|
|
|
rustfmt
|
|
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
libGL
|
|
|
|
libxkbcommon
|
|
|
|
wayland
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXinerama
|
|
|
|
xorg.libXrandr
|
|
|
|
];
|
|
|
|
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
|
|
|
|
SOURCE_DATE_EPOCH = "${toString self.lastModified}";
|
|
|
|
};
|
|
|
|
};
|
2024-03-10 11:42:33 +03:00
|
|
|
}
|