Skip to content

Instantly share code, notes, and snippets.

@NCrashed
Created December 2, 2018 12:37
Show Gist options
  • Save NCrashed/8f15b4d70f65cf910f430a356588f5a9 to your computer and use it in GitHub Desktop.
Save NCrashed/8f15b4d70f65cf910f430a356588f5a9 to your computer and use it in GitHub Desktop.
nix rust shell
# 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