pantheon.appcenter: Fix build

Use upstream patch.

To make it apply, we need to update the src hash, which r-ryantm did not do during the version bump: https://github.com/NixOS/nixpkgs/pull/101311
This commit is contained in:
Jan Tojnar 2021-04-14 01:15:00 +02:00
parent 804b04e1bc
commit d4e741f6dc
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -37,9 +37,18 @@ stdenv.mkDerivation rec {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "sha256-8r0DlmG8xlCQ1uFHZQjXG2ls4VBrsRzrVY8Ey3/OYAU=";
sha256 = "MsaXdmL+M+NYAJrrwluleeNxqQg0soFbO/G/FqibBFI=";
};
patches = [
# Allow build with appstream 0.14.x
# https://github.com/elementary/appcenter/pull/1493
(fetchpatch {
url = "https://github.com/elementary/appcenter/commit/5807dd13fe3c715f26225aed8d7a0abdea0c2a64.patch";
sha256 = "BvEahG9lU9ZdgooFDFhm5evRvnKVcmcHLdmZPb85gbo=";
})
];
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";