lol

rar: add support to x86_64-darwin

+12 -8
+12 -8
pkgs/tools/archivers/rar/default.nix
··· 2 2 3 3 let 4 4 version = "6.0.2"; 5 - # TODO: add support for macOS 6 - srcUrl = 7 - if stdenv.isi686 then { 5 + srcUrl = { 6 + i686-linux = { 8 7 url = "https://www.rarlab.com/rar/rarlinux-${version}.tar.gz"; 9 - sha256 = "sha256-5iqK7eOo+hgLtGSCqUoB+wOFZHUqZ0M/8Jf7bxdf9qA="; 10 - } else if stdenv.isx86_64 then { 8 + sha256 = "sha256-5iqk7eoo+hgltgscquob+wofzhuqz0m/8jf7bxdf9qa="; 9 + }; 10 + x86_64-linux = { 11 11 url = "https://www.rarlab.com/rar/rarlinux-x64-${version}.tar.gz"; 12 12 sha256 = "sha256-WAvrUGCgfwI51Mo/RYSSF0OLPPrTegUCuDEsnBeR9uQ="; 13 - } 14 - else throw "Unknown architecture"; 13 + }; 14 + x86_64-darwin = { 15 + url = "https://www.rarlab.com/rar/rarosx-${version}.tar.gz"; 16 + sha256 = "sha256-baZ71vYXIGs25f7PJ0ujoGUrsWZRmFLhvDI0KoVktsg="; 17 + }; 18 + }.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}"); 15 19 manSrc = fetchurl { 16 20 url = "https://aur.archlinux.org/cgit/aur.git/plain/rar.1?h=rar&id=8e39a12e88d8a3b168c496c44c18d443c876dd10"; 17 21 name = "rar.1"; ··· 50 54 homepage = "https://www.rarlab.com/"; 51 55 license = licenses.unfree; 52 56 maintainers = with maintainers; [ thiagokokada ]; 53 - platforms = platforms.linux; 57 + platforms = with platforms; linux ++ darwin; 54 58 }; 55 59 }