Unverified Commit 908bfbb1 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

tplay: 0.6.0 -> 0.6.3 (#420683)

parents 3c41f8cb 382ae5ce
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
  fetchFromGitHub,
  pkg-config,
  clang,
  ffmpeg,
  ffmpeg-headless,
  openssl,
  alsa-lib,
  opencv,
@@ -12,17 +12,17 @@
}:
rustPlatform.buildRustPackage rec {
  pname = "tplay";
  version = "0.6.0";
  version = "0.6.3";

  src = fetchFromGitHub {
    owner = "maxcurzi";
    repo = "tplay";
    rev = "v${version}";
    hash = "sha256-SRn7kg5FdSimKMFowKNUIan+MrojtNO0apeehIRTzfw=";
    hash = "sha256-JVkezG2bs99IFOTONeZZRljjbi0EhFf+DMxcfiWI4p4=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-SzOx9IPp+TjiJpAEX8+GhZ+UEEmqNpI67S40OiYrHfM=";
  cargoHash = "sha256-LHRTmjAwDPMOP6YQfL01leEzqRKtteU1cnUqL6UeWKk=";
  checkFlags = [
    # requires network access
    "--skip=pipeline::image_pipeline::tests::test_process"
@@ -35,20 +35,19 @@ rustPlatform.buildRustPackage rec {
    rustPlatform.bindgenHook
    pkg-config
    clang
    ffmpeg
    makeWrapper
  ];

  buildInputs = [
    openssl.dev
    alsa-lib.dev
    ffmpeg.dev
    ffmpeg-headless.dev
    opencv
  ];

  postFixup = ''
    wrapProgram $out/bin/tplay \
      --prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"
      --prefix PATH : "${lib.makeBinPath [ ffmpeg-headless ]}"
  '';

  meta = {