chore: add nix-shell stuff

This commit is contained in:
meh
2020-10-04 18:28:14 +02:00
committed by Till Höppner
parent fc9701a71d
commit e1f104cb19
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ libc = "0.2"
num_cpus = "1.11"
cc = "1.0"
pkg-config = "0.3"
bindgen = "0.54"
bindgen = "0.55"
[target.'cfg(target_env = "msvc")'.build-dependencies]
vcpkg = "0.2"
+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";
}