tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
rar: 6.12 -> 6.21
Thiago Kenji Okada
3 years ago
beaa132a
fb31cca5
+7
-5
1 changed file
expand all
collapse all
unified
split
pkgs
tools
archivers
rar
default.nix
+7
-5
pkgs/tools/archivers/rar/default.nix
···
1
1
{ lib, stdenv, fetchurl, autoPatchelfHook, installShellFiles }:
2
2
3
3
let
4
4
-
version = "6.12";
4
4
+
version = "6.21";
5
5
downloadVersion = lib.replaceStrings [ "." ] [ "" ] version;
6
6
+
# Use `nix store prefetch-file <url>` to generate the hashes for the other systems
7
7
+
# TODO: create update script
6
8
srcUrl = {
7
9
i686-linux = {
8
10
url = "https://www.rarlab.com/rar/rarlinux-x32-${downloadVersion}.tar.gz";
9
9
-
hash = "sha256-Vh8Hyd3Y2tDapXY+xZ+6W+X7SQGDsy1x61L28sieYKw=";
11
11
+
hash = "sha256-mDeRmLTjF0ZLv4JoLrgI8YBFFulBSKfOPb6hrxDZIkU=";
10
12
};
11
13
x86_64-linux = {
12
14
url = "https://www.rarlab.com/rar/rarlinux-x64-${downloadVersion}.tar.gz";
13
13
-
hash = "sha256-ZaGn5OzqVzDojJn8bTrbRh1wvYXM7SK91jl96mbNAeA=";
15
15
+
hash = "sha256-3fr5aVkh/r6OfBEcZULJSZp5ydakJOLRPlgzMdlwGTM=";
14
16
};
15
17
aarch64-darwin = {
16
18
url = "https://www.rarlab.com/rar/rarmacos-arm-${downloadVersion}.tar.gz";
17
17
-
hash = "sha256-SR80VxKgLrJqO0JGWMMGUuIuIgGgxcVH+5fCWnVqJks=";
19
19
+
hash = "sha256-OR9HBlRteTzuyQ06tyXTSrFTBHFwmZ41kUfvgflogT4=";
18
20
};
19
21
x86_64-darwin = {
20
22
url = "https://www.rarlab.com/rar/rarmacos-x64-${downloadVersion}.tar.gz";
21
21
-
hash = "sha256-9gfKEr3DE4hMWm9QT79mKgURvzn+BKmyppTJhs00u2c=";
23
23
+
hash = "sha256-UN3gmEuIpCXwmw3/l+KdarAYLy1DxGoPAOB2bfJTGbw=";
22
24
};
23
25
}.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
24
26
manSrc = fetchurl {