From 8d56f162e5edd61ba21367f1bf004e37ac1ff2ea Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Tue, 4 May 2021 13:56:41 +0200 Subject: [PATCH] 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 --- pkgs/development/libraries/libaom/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/libaom/default.nix b/pkgs/development/libraries/libaom/default.nix index 62045a79ebf..83f5de4d013 100644 --- a/pkgs/development/libraries/libaom/default.nix +++ b/pkgs/development/libraries/libaom/default.nix @@ -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 ];