Skip to content

Commit

Permalink
unrar: 7.0.9 -> 7.1.1 (#354876)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Nov 19, 2024
2 parents fe58058 + f91f250 commit 27bc5d4
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions pkgs/by-name/un/unrar/package.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
{ lib
, stdenv
, fetchzip
{
lib,
stdenv,
fetchzip,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "unrar";
version = "7.0.9";
version = "7.1.1";

src = fetchzip {
url = "https://www.rarlab.com/rar/unrarsrc-${finalAttrs.version}.tar.gz";
stripRoot = false;
hash = "sha256-lHh02uqHdX2Q9yyaGiHlkdBjlQE1tQyB44d39yDE4ls=";
hash = "sha256-dGF5xCZRHnaMVj/OGIIFbytN7Jnj39gq7ym6hq/EZsk=";
};

sourceRoot = finalAttrs.src.name;

postPatch = ''
substituteInPlace unrar/makefile \
--replace "CXX=" "#CXX=" \
--replace "STRIP=" "#STRIP=" \
--replace "AR=" "#AR="
--replace-fail "CXX=" "#CXX=" \
--replace-fail "STRIP=" "#STRIP=" \
--replace-fail "AR=" "#AR="
'';

outputs = [ "out" "dev" ];
outputs = [
"out"
"dev"
];

# `make {unrar,lib}` call `make clean` implicitly
# separate build into different dirs to avoid deleting them
Expand Down

0 comments on commit 27bc5d4

Please sign in to comment.