mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
chore: add nix-shell stuff
This commit is contained in:
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user