Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
rav1e: 0.3.2 -> 0.3.3
Browse files Browse the repository at this point in the history
The Cargo.lock file is not included in the master branch but it is
currently added for the releases (e.g. [0]). Since the GitHub deploy
action currently fails for other reasons [1] we should use the
Cargo.lock from the repository instead.

[0]: xiph/rav1e@80573d2
[1]: xiph/rav1e#2373
  • Loading branch information
primeos committed Jun 13, 2020
1 parent dde8745 commit e3fa38e
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions pkgs/tools/video/rav1e/default.nix
@@ -1,31 +1,17 @@
{ rustPlatform, fetchFromGitHub, fetchurl, stdenv, lib, nasm }:
{ rustPlatform, fetchFromGitHub, lib, nasm }:

rustPlatform.buildRustPackage rec {
pname = "rav1e";
version = "0.3.2";
version = "0.3.3";

src = stdenv.mkDerivation rec {
name = "${pname}-${version}-source";

src = fetchFromGitHub {
owner = "xiph";
repo = "rav1e";
rev = "v${version}";
sha256 = "0qqw397yfglwj9kg45imhx1p5bb0nsx2gkaxj4lcc9i1hav6ia43";
};
cargoLock = fetchurl {
url = "https://github.com/xiph/rav1e/releases/download/v${version}/Cargo.lock";
sha256 = "1kdr3q97vq3mip1h7iv2iy9qzlgb69y6nwjzbw9nfi7dl7ip6q3l";
};

installPhase = ''
mkdir -p $out
cp -R ./* $out/
cp ${cargoLock} $out/Cargo.lock
'';
src = fetchFromGitHub {
owner = "xiph";
repo = "rav1e";
rev = "v${version}";
sha256 = "0a9dryag4x35a2c45qiq1j5xk9ydcpw1g6kici85d2yrc2z3hwrx";
};

cargoSha256 = "03zsvavk7wskz843qxwwcymhclarcp6nfxwa1mwna3nmzvlm1hwb";
cargoSha256 = "1xaincrmpicp0skf9788w5631x1hxvifvq06hh5ribdz79zclzx3";

nativeBuildInputs = [ nasm ];

Expand Down

0 comments on commit e3fa38e

Please sign in to comment.