2023-11-23 12:03:02 +01:00
|
|
|
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
|
2024-03-04 22:20:16 +01:00
|
|
|
unzip
|
2023-11-23 12:03:02 +01:00
|
|
|
hotspot
|
|
|
|
cmakeWithGui
|
|
|
|
gnumake
|
2024-03-04 22:20:16 +01:00
|
|
|
clang
|
2023-11-23 12:03:02 +01:00
|
|
|
ccache
|
|
|
|
cudatoolkit_11
|
|
|
|
git
|
|
|
|
python3
|
|
|
|
linuxPackages.perf
|
2024-03-04 22:20:16 +01:00
|
|
|
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
|
2023-11-23 12:03:02 +01:00
|
|
|
] ;
|
2024-03-04 22:20:16 +01:00
|
|
|
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
|
|
|
|
'';
|
2023-11-23 12:03:02 +01:00
|
|
|
}
|