From 063c335433a3feb56e61ec4820200e49fa4c8976 Mon Sep 17 00:00:00 2001 From: meh Date: Sun, 4 Oct 2020 18:40:15 +0200 Subject: [PATCH] chore: add nix-shell stuff --- shell.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..024bb7b --- /dev/null +++ b/shell.nix @@ -0,0 +1,21 @@ +let + mozilla = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); +in + +with (import { + 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"; +}