From a46a91e183a272e012354a6f0263299448205acb Mon Sep 17 00:00:00 2001 From: David Date: Fri, 15 Jul 2022 17:33:27 +0200 Subject: initial commit: template --- shell.nix | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') 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 { + 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"; +} -- cgit