libaom: 3.0.0 -> 3.1.0

We had to use fetchgit so far as the tarballs are generated on demand
and have embedded timestamps which makes their hashes unstable [0][1].
This is a problem for fetchurl but fetchzip extracts the tarballs into
the Nix store and therefore the contents will get normalized and the
hashes remain stable.

[0]: https://github.com/google/gitiles/issues/84
[1]: https://bugs.eclipse.org/bugs/show_bug.cgi?id=548312
This commit is contained in:
Michael Weiss 2021-05-04 13:56:41 +02:00
parent b6956b5ef8
commit 8d56f162e5
No known key found for this signature in database
GPG key ID: 5BE487C4D4771D83

View file

@ -1,13 +1,13 @@
{ lib, stdenv, fetchgit, yasm, perl, cmake, pkg-config, python3 }:
{ lib, stdenv, fetchzip, yasm, perl, cmake, pkg-config, python3 }:
stdenv.mkDerivation rec {
pname = "libaom";
version = "3.0.0";
version = "3.1.0";
src = fetchgit {
url = "https://aomedia.googlesource.com/aom";
rev = "v${version}";
sha256 = "178rq1d7i9q4lg40bipkyhdrk18j9wi5k5avpa5bls0zm7g5ifsx";
src = fetchzip {
url = "https://aomedia.googlesource.com/aom/+archive/v${version}.tar.gz";
sha256 = "1v3i34jmbz1p3x8msj3vx46nl6jdzxbkr2lfbh06vard8adb16il";
stripRoot = false;
};
patches = [ ./outputs.patch ];