unrar: 6.2.12 -> 7.0.7

This commit is contained in:
Weijia Wang 2024-02-29 20:23:57 +01:00
parent b72ee72a80
commit 9dd105625d
4 changed files with 22 additions and 5 deletions

View File

@ -121,6 +121,8 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
- The `power.ups` module now generates `upsd.conf`, `upsd.users` and `upsmon.conf` automatically from a set of new configuration options. This breaks compatibility with existing `power.ups` setups where these files were created manually. Back up these files before upgrading NixOS.
- `unrar` was updated to v7. See [changelog](https://www.rarlab.com/unrar7notes.htm) for more information.
- `k3s` was updated to [v1.29](https://github.com/k3s-io/k3s/releases/tag/v1.29.1%2Bk3s2). See [changelog and upgrade notes](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.29.md#urgent-upgrade-notes) for more information.
- `k9s` was updated to v0.31. There have been various breaking changes in the config file format,

View File

@ -5,12 +5,12 @@
stdenv.mkDerivation (finalAttrs: {
pname = "unrar";
version = "6.2.12";
version = "7.0.7";
src = fetchzip {
url = "https://www.rarlab.com/rar/unrarsrc-${finalAttrs.version}.tar.gz";
stripRoot = false;
hash = "sha256-VAL3o9JGmkAcEssa/P/SL9nyxnigb7dX9YZBHrG9f0A=";
hash = "sha256-S7BMywydetDh1GINcK3k3fN9ciDoKTCAe/1tkgykoAQ=";
};
sourceRoot = finalAttrs.src.name;

View File

@ -0,0 +1,15 @@
{ unrar
, fetchzip
}:
unrar.overrideAttrs (finalAttrs: _: {
version = "6.2.12";
src = fetchzip {
url = "https://www.rarlab.com/rar/unrarsrc-${finalAttrs.version}.tar.gz";
stripRoot = false;
hash = "sha256-VAL3o9JGmkAcEssa/P/SL9nyxnigb7dX9YZBHrG9f0A=";
};
sourceRoot = finalAttrs.src.name;
})

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, autoreconfHook
, fuse
, unrar
, unrar_6
}:
stdenv.mkDerivation rec {
@ -23,10 +23,10 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ fuse unrar ];
buildInputs = [ fuse unrar_6 ];
configureFlags = [
"--with-unrar=${unrar.src}/unrar"
"--with-unrar=${unrar_6.src}/unrar"
"--disable-static-unrar"
];