Advertisement
Guest User

Untitled

a guest
Mar 14th, 2020
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.26 KB | None | 0 0
  1. let
  2.   sources = import ./nix/sources.nix;
  3.   # pkgs = import /home/tom/nixpkgs {
  4.   #   config.allowBroken = true;
  5.   #   config.allowUnfree = true;
  6.   # };
  7.   pkgs = import sources.nixpkgs{
  8.     config.allowBroken = true;
  9.     config.allowUnfree = true;
  10.   };
  11.   rs-src = builtins.fetchGit {
  12.     url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs";
  13.     rev = "4c27d560a9f6fc94cf9464fb47fd632fc659265f";
  14.   };
  15.   lock = ./Cargo.lock;
  16. in
  17. with pkgs;
  18. let
  19.   rr = pkgs.rustPlatform.buildRustPackage rec {
  20.     pname = "gst-plugins-rs";
  21.     version = "testing";
  22.     src = rs-src;
  23.     prePatch = ''
  24.       cp ${lock} ./Cargo.lock
  25.     '';
  26.     LIBCLANG_PATH="${llvmPackages.libclang}/lib";
  27.     buildInputs = [
  28.       gobject-introspection glib.dev pkg-config
  29.       gst_all_1.gst-plugins-base
  30.       gst_all_1.gst-plugins-good
  31.       gst_all_1.gstreamer
  32.       gst_all_1.gstreamer.dev
  33.       gst_all_1.gst-plugins-ugly
  34.       gst_all_1.gst-plugins-bad
  35.       gst_all_1.gst-plugins-bad.dev
  36.       gst_all_1.gst-libav
  37.       gst_all_1.gst-rtsp-server
  38.       gst_all_1.gst-editing-services
  39.       dav1d
  40.       openssl
  41.       llvm
  42.       llvmPackages.libclang.lib
  43.  
  44.       stdenv
  45.       gcc
  46.       glibc.dev
  47.       glibc
  48.     ];
  49.     cargoSha256 = "sha256-aBw5C8Ia7vzvEnE5FwzCcVcGFRFiN4pBkd54weqni1Q=";
  50.   };
  51. in
  52.   rr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement