diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2020-11-19 12:38:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 12:38:25 +0100 |
commit | 15fb3be1c0e2ffde6cbf298203210cf56e79e95c (patch) | |
tree | c29f7fd79e49c841df6702a0675549c5d660482a /pkgs/tools/video | |
parent | 600b5da6e3feb5432a04c3b6f624fafa69f48abb (diff) | |
parent | 2aff61f6092b1012c9cf99013424cd087134787f (diff) |
Merge pull request #104122 from Chiiruno/dev/rav1e
rav1e: 0.3.4 -> 0.4.0-alpha // ffmpeg-full: re-enable rav1e
Diffstat (limited to 'pkgs/tools/video')
-rw-r--r-- | pkgs/tools/video/rav1e/default.nix | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/pkgs/tools/video/rav1e/default.nix b/pkgs/tools/video/rav1e/default.nix index ae7a45b562d9..1951afd7ab92 100644 --- a/pkgs/tools/video/rav1e/default.nix +++ b/pkgs/tools/video/rav1e/default.nix @@ -1,18 +1,32 @@ -{ rustPlatform, fetchFromGitHub, lib, nasm, cargo-c }: +{ stdenv, rustPlatform, fetchurl, fetchFromGitHub, lib, nasm, cargo-c }: rustPlatform.buildRustPackage rec { pname = "rav1e"; - version = "0.3.4"; + version = "0.4.0-alpha"; - src = fetchFromGitHub { - owner = "xiph"; - repo = "rav1e"; - rev = "v${version}"; - sha256 = "0zwjg0sv504i1ahzfy2jgng6qwmyvcrvdrp4n3s90r4kvwjkv8xs"; - }; + src = stdenv.mkDerivation rec { + name = "${pname}-${version}-source"; + + src = fetchFromGitHub { + owner = "xiph"; + repo = "rav1e"; + rev = "v${version}"; + sha256 = "1fw1gxi8330kfhl9hfzpn0lcmyn5604lc74d6g6iadzz2hmv4mb9"; + }; + + cargoLock = fetchurl { + url = "https://github.com/xiph/rav1e/releases/download/v0.4.0-alpha/Cargo.lock"; + sha256 = "002s2wlzpifn5p2ahdrjdkjl48c1wr6fslg0if4gf9qpl8qj05fl"; + }; - cargoSha256 = "1mfzshcbxky27nskxhcyrj99wd3v5f597ymgv7nb67lzp5lsyb24"; + installPhase = '' + mkdir -p $out + cp -r ./* $out/ + cp ${cargoLock} $out/Cargo.lock + ''; + }; + cargoSha256 = "1i5ldqb77rrhfxxf9krp7f6yj3h6rsqak6hf23fd2znhgmi7psb1"; nativeBuildInputs = [ nasm cargo-c ]; postBuild = '' |