chore: add nix-shell stuff

This commit is contained in:
meh
2020-10-04 18:40:15 +02:00
parent 4f270f98fb
commit 063c335433
+21
View File
@@ -0,0 +1,21 @@
let
mozilla = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
in
with (import <nixpkgs> {
overlays = [mozilla];
});
mkShell {
name = "ffmpeg-sys";
buildInputs = [
# For building.
clang rustChannels.stable.rust pkg-config ffmpeg
];
RUST_BACKTRACE = 1;
RUSTFLAGS = "-C target-cpu=native";
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
}