Skip to content

Instantly share code, notes, and snippets.

@tinylucid
Created November 28, 2019 00:02
Show Gist options
  • Save tinylucid/de9a58d5aaa78cec493949b7347ac735 to your computer and use it in GitHub Desktop.
Save tinylucid/de9a58d5aaa78cec493949b7347ac735 to your computer and use it in GitHub Desktop.
small nix script for nix-shell for Rust projects
let
mozilla = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ mozilla ]; };
in
with nixpkgs;
mkShell {
buildInputs = [
clang # needed for bindgen
latest.rustChannels.nightly.rust
openssl
pkgconfig # needed for libdbus-sys to find the paths
dbus.dev
];
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment