tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
rar: add support to x86_64-darwin
Thiago Kenji Okada
4 years ago
2fd4fbe8
a4d96cd8
+12
-8
1 changed file
expand all
collapse all
unified
split
pkgs
tools
archivers
rar
default.nix
+12
-8
pkgs/tools/archivers/rar/default.nix
···
2
2
3
3
let
4
4
version = "6.0.2";
5
5
-
# TODO: add support for macOS
6
6
-
srcUrl =
7
7
-
if stdenv.isi686 then {
5
5
+
srcUrl = {
6
6
+
i686-linux = {
8
7
url = "https://www.rarlab.com/rar/rarlinux-${version}.tar.gz";
9
9
-
sha256 = "sha256-5iqK7eOo+hgLtGSCqUoB+wOFZHUqZ0M/8Jf7bxdf9qA=";
10
10
-
} else if stdenv.isx86_64 then {
8
8
+
sha256 = "sha256-5iqk7eoo+hgltgscquob+wofzhuqz0m/8jf7bxdf9qa=";
9
9
+
};
10
10
+
x86_64-linux = {
11
11
url = "https://www.rarlab.com/rar/rarlinux-x64-${version}.tar.gz";
12
12
sha256 = "sha256-WAvrUGCgfwI51Mo/RYSSF0OLPPrTegUCuDEsnBeR9uQ=";
13
13
-
}
14
14
-
else throw "Unknown architecture";
13
13
+
};
14
14
+
x86_64-darwin = {
15
15
+
url = "https://www.rarlab.com/rar/rarosx-${version}.tar.gz";
16
16
+
sha256 = "sha256-baZ71vYXIGs25f7PJ0ujoGUrsWZRmFLhvDI0KoVktsg=";
17
17
+
};
18
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
53
-
platforms = platforms.linux;
57
57
+
platforms = with platforms; linux ++ darwin;
54
58
};
55
59
}