diff options
author | David <david003@gmx.net> | 2022-07-15 17:33:27 +0200 |
---|---|---|
committer | David <david003@gmx.net> | 2022-07-15 17:33:27 +0200 |
commit | a46a91e183a272e012354a6f0263299448205acb (patch) | |
tree | b0700f933db7149c1b95afed2e04d53772f7e2dc /shell.nix | |
download | 2022-a46a91e183a272e012354a6f0263299448205acb.tar.gz 2022-a46a91e183a272e012354a6f0263299448205acb.tar.bz2 2022-a46a91e183a272e012354a6f0263299448205acb.zip |
initial commit: template
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..3bee8ce --- /dev/null +++ b/shell.nix @@ -0,0 +1,52 @@ +with import <nixpkgs> { + config.android_sdk.accept_license = true; +}; + +stdenv.mkDerivation { + name = "code-with-your-friends2022"; + nativeBuildInputs = [ + cacert + emacs + godot + jdk + nix + openssl + pkgconfig + sccache + ]; + buildInputs = [ + alsaLib + clang + glibc_multi + libGL + libpulseaudio + xorg.libX11 + xorg.libXcursor + xorg.libXi + xorg.libXinerama + xorg.libXrandr + xorg.libXrender + zlib + ]; + shellHook = '' + export PATH=$HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin:$PATH + ''; + + # Set Environment Variables + EDITOR = "emacs"; + LD_LIBRARY_PATH = builtins.concatStringsSep ":" [ + "${alsaLib}/lib/" + "${libGL}/lib/" + "${libpulseaudio}/lib/" + "${xorg.libX11}/lib/" + "${xorg.libXcursor}/lib/" + "${xorg.libXi}/lib/" + "${xorg.libXinerama}/lib/" + "${xorg.libXrandr}/lib/" + "${xorg.libXrender}/lib/" + "${zlib}/lib/" + ]; + LIBCLANG_PATH = "${llvmPackages.libclang}/lib"; + RUST_BACKTRACE = 1; + RUSTC_WRAPPER = "${sccache}/bin/sccache"; +} |