whatsapp-for-mac: 2.25.22.79 -> 2.26.9.17 (#495903)
This commit is contained in:
@@ -10,13 +10,13 @@
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "whatsapp-for-mac";
|
||||
version = "2.25.22.79";
|
||||
version = "2.26.9.17";
|
||||
|
||||
src = fetchzip {
|
||||
extension = "zip";
|
||||
name = "WhatsApp.app";
|
||||
url = "https://web.whatsapp.com/desktop/mac_native/release/?version=${finalAttrs.version}&extension=zip&configuration=Release&branch=relbranch";
|
||||
hash = "sha256-LYjPMiXLD1U5ZNt/acBagrV2RS7U/OGMJ06mUFBluSQ=";
|
||||
url = "https://web.whatsapp.com/desktop/mac_native/release/?version=${finalAttrs.version}&extension=zip&configuration=Release&branch=master";
|
||||
hash = "sha256-bba22HBnIeio4M92mckiOa1IQpRUfx/I7OkfA4hO6rU=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
@@ -41,7 +41,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
common-updater-scripts
|
||||
];
|
||||
text = ''
|
||||
url=$(curl --silent "https://web.whatsapp.com/desktop/mac_native/updates/?branch=relbranch&configuration=Release")
|
||||
url=$(curl --silent "https://web.whatsapp.com/desktop/mac_native/updates/?branch=master&configuration=Release")
|
||||
version=$(echo "$url" | xmlstarlet sel -t -v "substring-before(substring-after(//enclosure/@url, 'version='), '&')")
|
||||
update-source-version whatsapp-for-mac "$version" --file=./pkgs/by-name/wh/whatsapp-for-mac/package.nix
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user