Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.1 KiB
Nix

{
lib,
buildPythonApplication,
fetchFromGitHub,
unar,
}:
buildPythonApplication rec {
pname = "unrar-wrapper";
version = "1.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "openSUSE";
repo = "unrar_wrapper";
rev = "unrar_wrapper-${version}";
sha256 = "sha256-HjrUif8MrbtLjRQMAPZ/Y2o43rGSDj0HHY4fZQfKz5w=";
};
makeWrapperArgs = [
"--prefix"
"PATH"
":"
"${lib.makeBinPath [ unar ]}"
];
postFixup = ''
ln -s $out/bin/unrar_wrapper $out/bin/unrar
rm -rf $out/nix-support/propagated-build-inputs
'';
setupHook = ./setup-hook.sh;
meta = with lib; {
homepage = "https://github.com/openSUSE/unrar_wrapper";
description = "Backwards compatibility between unar and unrar";
longDescription = ''
unrar_wrapper is a wrapper python script that transforms the basic UnRAR commands
to unar and lsar calls in order to provide a backwards compatibility.
'';
license = licenses.gpl3Only;
platforms = platforms.unix;
maintainers = with maintainers; [ artturin ];
};
}