2020-11-18 14:55:28 +00:00
|
|
|
let
|
|
|
|
pkgs = import <nixpkgs> {};
|
|
|
|
in with pkgs; stdenv.mkDerivation rec {
|
|
|
|
name = "rust-gpu";
|
|
|
|
|
|
|
|
# Workaround for https://github.com/NixOS/nixpkgs/issues/60919.
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
|
|
|
# Allow cargo to download crates.
|
|
|
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-03-28 07:27:00 +00:00
|
|
|
pkgconfig rustup xlibsWrapper libxkbcommon
|
2020-11-18 14:55:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Runtime dependencies.
|
2022-03-28 07:27:00 +00:00
|
|
|
LD_LIBRARY_PATH = with xorg; lib.makeLibraryPath [
|
2020-11-18 14:55:28 +00:00
|
|
|
libX11 libXcursor libXi libXrandr vulkan-loader
|
|
|
|
];
|
|
|
|
}
|