shells/development/default.nix

60 lines
1.2 KiB
Nix
Executable File

with import <nixpkgs> { };
gcc11Stdenv.mkDerivation rec {
#gccStdenv.mkDerivation rec {
#clang16Stdenv.mkDerivation rec {
name = "devel";
nativeBuildInputs = with pkgs; [
git
ninja
git-lfs
jdk19
jetbrains.clion
jetbrains.pycharm-community
jetbrains.idea-community
scala_3
moreutils
unzip
hotspot
cmakeWithGui
gnumake
clang
ccache
cudatoolkit_11
git
python3
linuxPackages.perf
sbt
cudaPackages.cudnn
(writeShellScriptBin "patch-cuda" "patchelf --set-rpath '/run/opengl-driver/lib:'$(patchelf --print-rpath $@) $@")
pkg-config
rustc
rustfmt
rust-analyzer
cargo
llvmPackages.bintools
alsa-lib
atk
cairo
dbus
gdk-pixbuf
glib
gtk3
pango
pkg-config
jetbrains.rust-rover
imgui
qt6.full
qtcreator
nlohmann_json
# qtwayland
] ;
shellHook = ''
export CXXFLAGS="-march=native -O3"
export PATH=$PATH:/run/current-system/sw/bin
export LD_LIBRARY_PATH=${pkgs.libGL}/lib:${pkgs.libGLU}/lib:${pkgs.freeglut}/lib:${pkgs.xorg.libX11}/lib:${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.cudatoolkit_11}/lib:${pkgs.cudaPackages.cudnn}/lib:${pkgs.cudatoolkit_11.lib}/lib:$LD_LIBRARY_PATH
# export LD_DEBUG=libs
'';
}