diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2020-08-11 16:22:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 16:22:47 +0200 |
commit | 7a01d5aa42ad69cff3c1646eece55f3a8197a8cd (patch) | |
tree | 1005a5ac08a86483787e992b284d97d7a48fbb13 /pkgs/tools/video | |
parent | 52419cc32e5480c3de812de2018d3e69268080b6 (diff) | |
parent | 7024a01211d9d0a4f8ab138a611349c37ac5a537 (diff) |
Merge pull request #91050 from primeos/rav1e-cargo-c
Add cargo-c and a C-API for rav1e
Diffstat (limited to 'pkgs/tools/video')
-rw-r--r-- | pkgs/tools/video/rav1e/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/video/rav1e/default.nix b/pkgs/tools/video/rav1e/default.nix index b8e43fe4f10f..f8d547b0285c 100644 --- a/pkgs/tools/video/rav1e/default.nix +++ b/pkgs/tools/video/rav1e/default.nix @@ -1,4 +1,4 @@ -{ rustPlatform, fetchFromGitHub, lib, nasm }: +{ rustPlatform, fetchFromGitHub, lib, nasm, cargo-c }: rustPlatform.buildRustPackage rec { pname = "rav1e"; @@ -13,7 +13,15 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1xaincrmpicp0skf9788w5631x1hxvifvq06hh5ribdz79zclzx3"; - nativeBuildInputs = [ nasm ]; + nativeBuildInputs = [ nasm cargo-c ]; + + postBuild = '' + cargo cbuild --release --frozen --prefix=${placeholder "out"} + ''; + + postInstall = '' + cargo cinstall --release --frozen --prefix=${placeholder "out"} + ''; meta = with lib; { description = "The fastest and safest AV1 encoder"; |