Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonApplication, 4 fetchFromGitHub, 5 unar, 6}: 7 8buildPythonApplication rec { 9 pname = "unrar-wrapper"; 10 version = "1.0.0"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "openSUSE"; 15 repo = "unrar_wrapper"; 16 rev = "unrar_wrapper-${version}"; 17 sha256 = "sha256-HjrUif8MrbtLjRQMAPZ/Y2o43rGSDj0HHY4fZQfKz5w="; 18 }; 19 20 makeWrapperArgs = [ 21 "--prefix" 22 "PATH" 23 ":" 24 "${lib.makeBinPath [ unar ]}" 25 ]; 26 27 postFixup = '' 28 ln -s $out/bin/unrar_wrapper $out/bin/unrar 29 rm -rf $out/nix-support/propagated-build-inputs 30 ''; 31 32 setupHook = ./setup-hook.sh; 33 34 meta = with lib; { 35 homepage = "https://github.com/openSUSE/unrar_wrapper"; 36 description = "Backwards compatibility between unar and unrar"; 37 longDescription = '' 38 unrar_wrapper is a wrapper python script that transforms the basic UnRAR commands 39 to unar and lsar calls in order to provide a backwards compatibility. 40 ''; 41 license = licenses.gpl3Only; 42 platforms = platforms.unix; 43 maintainers = with maintainers; [ artturin ]; 44 }; 45}