Commit graph

45 commits

Author SHA1 Message Date
Sergei Trofimovich e629f662fb rav1e: fix strip option mangling on x86_64-darwin
`rav1e-0.7.1` slightly changes `strip` option construction in
    43fb165e5e

Update mangling part to restore stripping.
2024-01-22 10:46:55 +00:00
Sergei Trofimovich c2cf4f3d9e rav1e: 0.7.0 -> 0.7.1
Changes: https://github.com/xiph/rav1e/releases/tag/v0.7.1
2024-01-12 14:41:20 +00:00
R. Ryantm 38d5ab182b rav1e: 0.6.6 -> 0.7.0 2023-12-31 07:25:05 +00:00
h7x4 b8054ecd8a treewide: add mainProgram 2023-11-23 21:04:16 +01:00
Alyssa Ross e3e57b8f18 lib.systems: elaborate Rust metadata
We need this stuff to be available in lib so make-derivation.nix can
access it to construct the Meson cross file.

This has a couple of other advantages:

 - It makes Rust less special.  Now figuring out what Rust calls a
   platform is the same as figuring out what Linux or QEMU call it.

 - We can unify the schema used to define Rust targets, and the schema
   used to access those values later.  Just like you can set "config"
   or "system" in a platform definition, and then access those same
   keys on the elaborated platform, you can now set "rustcTarget" in
   your crossSystem, and then access "stdenv.hostPlatform.rustcTarget"
   in your code.

"rustcTarget", "rustcTargetSpec", "cargoShortTarget", and
"cargoEnvVarTarget" have the "rustc" and "cargo" prefixes because
these are not exposed to code by the compiler, and are not
standardized.  The arch/os/etc. variables are all named to match the
forms in the Rust target spec JSON.

The new rust.target-family only takes a list, since we don't need to
worry about backwards compatibility when that name is used.

The old APIs are all still functional with no warning for now, so that
it's possible for external code to use a single API on both 23.05 and
23.11.  We can introduce the warnings once 23.05 is EOL, and make them
hard errors when 23.11 is EOL.
2023-11-09 10:02:24 +01:00
Adam Joseph 33c0b7f11c rav1e: use rust.envVars 2023-09-26 06:30:44 +00:00
Randy Eckenrode 98939130b9
rav1e: fix build with updated Darwin stdenv
The updated Darwin stdenv uses `llvm-strip`, but that causes issues for
rav1e when using NASM and linking it with the cctools ld64. Stripping
the debug information instead of everything fixes the problem.
2023-05-29 16:15:22 -04:00
R. Ryantm 33b4c4e7bb rav1e: 0.6.4 -> 0.6.6 2023-05-20 10:56:00 +00:00
R. Ryantm 66e85ab988 rav1e: 0.6.3 -> 0.6.4 2023-04-17 00:29:57 +00:00
Adam Joseph 4aa036f15a rav1e: fix cross
`cargo cbuild` needs to have the `C{C,XX}_FOR_{${platform}}`
variables set just like `cargo` since it is basically a wrapper
around cargo.  Without these variables, it will try to use the
`hostPlatform` C compiler to compile `build.rs` scripts, and will
pass flags to that compiler which only make sense on the
`buildPlatform`.  So it's just doomed without the environment
variables.

Right now it looks like `rav1e` is the only package we have that is
using `cargo-c`, but if that changes in the future we should factor
this out as its own hook, like `maturinBuildHook` and the others.
2023-04-14 07:41:03 +03:00
figsoda 201d4b7c5c rustPlatform.buildRustPackage: make auditable the default 2023-03-26 22:47:06 -04:00
Sandro Jäckel a62338c549 rav1e: fix build
zlib.h header was missing and because of that compilation failed.
2023-03-03 23:59:28 +01:00
Sandro 29211dc4b4
Merge pull request #209679 from r-ryantm/auto-update/rav1e 2023-03-01 23:34:33 +01:00
Alyssa Ross 212c28ec39 rav1e: use libgit2 from Nixpkgs
This is a native build input because it's used at build time by the
"built" crate, which tries to embed git info and build timestamps into
the binary (ugh).

This fixes cross-compilation from x86_64 to aarch64, because git2's
build.rs tries to use -m64, which is x86_64-only.
2023-01-29 10:48:40 +00:00
R. Ryantm d7c81d6c73 rav1e: 0.6.1 -> 0.6.3 2023-01-16 14:30:04 +00:00
figsoda cfc6213879
Merge pull request #204686 from figsoda/auditable
rustPlatform.buildRustPackage: build auditable binaries
2022-12-09 16:46:45 -05:00
figsoda a6137b73f9 cargo-auditable-cargo-wrapper: init 2022-12-07 00:23:43 -05:00
figsoda b632d78aea rav1e: make auditable 2022-12-05 18:58:42 -05:00
Theodore Ni ca4458830d
rav1e: 0.5.1 -> 0.6.1 2022-12-04 18:51:00 -08:00
R. Ryantm db71beb1b2 rav1e: 0.5.0 -> 0.5.1 2022-01-20 14:24:48 +00:00
github-actions[bot] 2aa3af36ca
Merge staging-next into staging 2021-12-06 12:01:55 +00:00
Jörg Thalheim ddaafeeebc rav1e: switch to checkType debug
see https://github.com/xiph/rav1e/issues/2851
2021-12-06 09:28:54 +01:00
R. Ryantm 930aee3dd3 rav1e: 0.4.1 -> 0.5.0 2021-11-03 23:11:33 +00:00
figsoda 88b50fce11 rav1e: switch to fetchCrate 2021-10-08 09:26:41 -04:00
Zhaofeng Li 944e7fb9c2 rav1e: Fix cross-compiling 2021-05-30 17:42:16 -07:00
Jonathan Ringer d8e62d8e41
Merge remote-tracking branch 'origin/master' into staging-next
Fix cargo-flash build
2021-05-16 18:27:14 -07:00
Michael Weiss fe29880472
cargo-c,rav1e: Remove myself as maintainer
I'm not using rav1e anymore and we're now using svt-av1 for ffmpeg-full.
2021-05-16 19:49:44 +02:00
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00
Mario Rodas dbcaf8b33f rav1e: fix build on darwin 2021-04-01 14:05:00 +02:00
Michael Weiss 9d0e4e9192
rav1e: 0.4.0 -> 0.4.1 2021-04-01 14:23:44 +02:00
Michael Weiss e85084a85b
rav1e: 0.4.0-alpha -> 0.4.0 2021-01-13 17:55:39 +01:00
zowoq 8bc6e95686 rav1e: fix eval 2020-11-19 23:07:16 +10:00
Okina Matara 85513a7940
rav1e: 0.3.4 -> 0.4.0-alpha 2020-11-18 20:42:33 -06:00
Michael Weiss ae0221e4d0 rav1e: 0.3.3 -> 0.3.4 2020-09-10 12:27:20 +02:00
zowoq 473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
Michael Weiss 7024a01211
rav1e: Build and install C-compatible libraries
This is required for AV1 encoding support via librav1e in FFmpeg 4.3:
d8bf24459b
2020-06-18 18:49:27 +02:00
Vladimír Čunát ad141fcbcb
rav1e: fix meta.homepage evaluation
It was broken by e3fa38ec1.
2020-06-13 17:15:25 +02:00
Michael Weiss e3fa38ec16
rav1e: 0.3.2 -> 0.3.3
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]: 80573d2bf7
[1]: https://github.com/xiph/rav1e/issues/2373
2020-06-13 15:22:42 +02:00
Michael Weiss 4d0d0b8dd1
rav1e: 0.3.1 -> 0.3.2 2020-05-29 21:34:51 +02:00
Benjamin Hipple 3dcdededf6 rav1e: upgrade cargo fetcher and cargoSha256 2020-03-08 22:27:42 -04:00
Michael Weiss c852f024cc
rav1e: 0.3.0 -> 0.3.1
Changelog: https://github.com/xiph/rav1e/releases/tag/v0.3.1
2020-02-20 11:24:54 +01:00
Benjamin Hipple eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00
Michael Weiss 27c0b18970
rav1e: 0.2.1 -> 0.3.0
Changelog: https://github.com/xiph/rav1e/releases/tag/v0.3.0
2020-02-07 16:03:19 +01:00
Michael Weiss 1c7c1e0529
rav1e: 0.2.0 -> 0.2.1
Changelog: https://github.com/xiph/rav1e/releases/tag/v0.2.1
2020-01-04 20:41:21 +01:00
Michael Weiss fa09b64bc0
rav1e: init at 0.2.0 2019-12-19 14:04:09 +01:00