Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let
- sources = import ./nix/sources.nix;
- # pkgs = import /home/tom/nixpkgs {
- # config.allowBroken = true;
- # config.allowUnfree = true;
- # };
- pkgs = import sources.nixpkgs{
- config.allowBroken = true;
- config.allowUnfree = true;
- };
- rs-src = builtins.fetchGit {
- url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs";
- rev = "4c27d560a9f6fc94cf9464fb47fd632fc659265f";
- };
- lock = ./Cargo.lock;
- in
- with pkgs;
- let
- rr = pkgs.rustPlatform.buildRustPackage rec {
- pname = "gst-plugins-rs";
- version = "testing";
- src = rs-src;
- prePatch = ''
- cp ${lock} ./Cargo.lock
- '';
- LIBCLANG_PATH="${llvmPackages.libclang}/lib";
- buildInputs = [
- gobject-introspection glib.dev pkg-config
- gst_all_1.gst-plugins-base
- gst_all_1.gst-plugins-good
- gst_all_1.gstreamer
- gst_all_1.gstreamer.dev
- gst_all_1.gst-plugins-ugly
- gst_all_1.gst-plugins-bad
- gst_all_1.gst-plugins-bad.dev
- gst_all_1.gst-libav
- gst_all_1.gst-rtsp-server
- gst_all_1.gst-editing-services
- dav1d
- openssl
- llvm
- llvmPackages.libclang.lib
- stdenv
- gcc
- glibc.dev
- glibc
- ];
- cargoSha256 = "sha256-aBw5C8Ia7vzvEnE5FwzCcVcGFRFiN4pBkd54weqni1Q=";
- };
- in
- rr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement