diff options
author | Ram Kromberg <ramkromberg@mail.com> | 2016-08-19 14:44:19 +0300 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2016-08-19 13:44:19 +0200 |
commit | db862d8271de2200bdbb5c4a0ab410df9c1f50c5 (patch) | |
tree | 91044c01e414767b7dbede555e76a844536c76c5 /pkgs/tools/archivers | |
parent | 1b69ef935e9813ae027d26d3595555284e98f6b4 (diff) | |
download | nixlib-db862d8271de2200bdbb5c4a0ab410df9c1f50c5.tar nixlib-db862d8271de2200bdbb5c4a0ab410df9c1f50c5.tar.gz nixlib-db862d8271de2200bdbb5c4a0ab410df9c1f50c5.tar.bz2 nixlib-db862d8271de2200bdbb5c4a0ab410df9c1f50c5.tar.lz nixlib-db862d8271de2200bdbb5c4a0ab410df9c1f50c5.tar.xz nixlib-db862d8271de2200bdbb5c4a0ab410df9c1f50c5.tar.zst nixlib-db862d8271de2200bdbb5c4a0ab410df9c1f50c5.zip |
unar: init at 1.10.1 (#17830)
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r-- | pkgs/tools/archivers/unar/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/tools/archivers/unar/default.nix b/pkgs/tools/archivers/unar/default.nix new file mode 100644 index 000000000000..520742a1b3c7 --- /dev/null +++ b/pkgs/tools/archivers/unar/default.nix @@ -0,0 +1,63 @@ +{ stdenv, fetchurl, gnustep, unzip, bzip2, zlib, icu, openssl }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "unar"; + version = "1.10.1"; + + src = fetchurl { + url = "http://unarchiver.c3.cx/downloads/${pname}${version}_src.zip"; + sha256 = "0aq9zlar5vzr5qxphws8dm7ax60bsfsw77f4ciwa5dq5lla715j0"; + }; + + buildInputs = [ + gnustep.make unzip gnustep.base bzip2.dev + zlib.dev icu.dev openssl.dev + ]; + + postPatch = '' + substituteInPlace Makefile.linux \ + --replace "CC = gcc" "CC=cc" \ + --replace "CXX = g++" "CXX=c++" \ + --replace "OBJCC = gcc" "OBJCC=cc" \ + --replace "OBJCXX = g++" "OBJCXX=c++" + + substituteInPlace ../UniversalDetector/Makefile.linux \ + --replace "CC = gcc" "CC=cc" \ + --replace "CXX = g++" "CXX=c++" \ + --replace "OBJCC = gcc" "OBJCC=c" \ + --replace "OBJCXX = g++" "OBJCXX=c++" + ''; + + makefile = "Makefile.linux"; + + sourceRoot = "./The Unarchiver/XADMaster"; + + installPhase = '' + mkdir -p $out/bin + cp lsar $out/bin + cp unar $out/bin + + mkdir -p $out/share/man/man1 + cp ../Extra/lsar.1 $out/share/man/man1 + cp ../Extra/unar.1 $out/share/man/man1 + + mkdir -p $out/etc/bash_completion.d + cp ../Extra/lsar.bash_completion $out/etc/bash_completion.d/lsar + cp ../Extra/unar.bash_completion $out/etc/bash_completion.d/unar + ''; + + meta = with stdenv.lib; { + homepage = http://unarchiver.c3.cx/unarchiver; + description = "An archive unpacker program"; + longDescription = '' + The Unarchiver is an archive unpacker program with support for the popular \ + zip, RAR, 7z, tar, gzip, bzip2, LZMA, XZ, CAB, MSI, NSIS, EXE, ISO, BIN, \ + and split file formats, as well as the old Stuffit, Stuffit X, DiskDouble, \ + Compact Pro, Packit, cpio, compress (.Z), ARJ, ARC, PAK, ACE, ZOO, LZH, \ + ADF, DMS, LZX, PowerPacker, LBR, Squeeze, Crunch, and other old formats. + ''; + license = with licenses; [ lgpl21Plus ]; + platforms = with platforms; linux; + }; +} |