1 { lib, buildPythonApplication, fetchFromGitHub, unar }:
3 buildPythonApplication rec {
4 pname = "unrar-wrapper";
7 src = fetchFromGitHub {
9 repo = "unrar_wrapper";
10 rev = "unrar_wrapper-${version}";
11 sha256 = "sha256-HjrUif8MrbtLjRQMAPZ/Y2o43rGSDj0HHY4fZQfKz5w=";
15 "--prefix" "PATH" ":" "${lib.makeBinPath [ unar ]}"
19 ln -s $out/bin/unrar_wrapper $out/bin/unrar
20 rm -rf $out/nix-support/propagated-build-inputs
23 setupHook = ./setup-hook.sh;
26 homepage = "https://github.com/openSUSE/unrar_wrapper";
27 description = "Backwards compatibility between unar and unrar";
29 unrar_wrapper is a wrapper python script that transforms the basic UnRAR commands
30 to unar and lsar calls in order to provide a backwards compatibility.
32 license = licenses.gpl3Only;
33 platforms = platforms.unix;
34 maintainers = with maintainers; [ artturin ];