Created
December 2, 2018 12:37
-
-
Save NCrashed/8f15b4d70f65cf910f430a356588f5a9 to your computer and use it in GitHub Desktop.
nix rust shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Latest Nightly | |
with import <nixpkgs> {}; | |
let src = fetchFromGitHub { | |
owner = "mozilla"; | |
repo = "nixpkgs-mozilla"; | |
rev = "b9c99d043b1cb55ee8c08265223b7c35d687acb9"; | |
sha256 = "0akyhdv5p0qiiyp6940k9bvismjqm9f8xhs0gpznjl6509dwgfxl"; | |
}; | |
in | |
with import "${src.out}/rust-overlay.nix" pkgs pkgs; | |
pkgs.stdenv.mkDerivation rec { | |
name = "aerospace-env"; | |
buildInputs = with pkgs; [ | |
#latest.rustChannels.nightly.rust | |
rustup | |
# Other packages | |
pkgconfig | |
openssl | |
git | |
libGL | |
xorg.libxcb | |
xorg.libX11 | |
xorg.libXcursor | |
xorg.libXi | |
xorg.libXrandr | |
python3 | |
alsaLib | |
freetype | |
expat | |
]; | |
LD_LIBRARY_PATH = with pkgs; "${libGL}/lib:${xorg.libX11}/lib:${xorg.libXcursor}/lib:${xorg.libXrandr}/lib:${xorg.libXi}/lib"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment