1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/archivers/innoextract/default.nix

33 lines
912 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, doxygen, makeWrapper, python
, boost, lzma
, withGog ? false, unar ? null }:
2015-11-12 00:03:43 +00:00
stdenv.mkDerivation rec {
2016-03-25 06:16:31 +00:00
name = "innoextract-1.6";
2015-11-12 00:03:43 +00:00
src = fetchurl {
url = "http://constexpr.org/innoextract/files/${name}.tar.gz";
2016-03-25 06:16:31 +00:00
sha256 = "0gh3q643l8qlwla030cmf3qdcdr85ixjygkb7j4dbm7zbwa3yik6";
2015-11-12 00:03:43 +00:00
};
buildInputs = [ python lzma boost ];
nativeBuildInputs = [ cmake makeWrapper ];
enableParallelBuilding = true;
# we need unar to for multi-archive extraction
postFixup = stdenv.lib.optionalString withGog ''
wrapProgram $out/bin/innoextract \
--prefix PATH : ${stdenv.lib.makeBinPath [ unar ]}
'';
2015-11-12 00:03:43 +00:00
meta = with stdenv.lib; {
description = "A tool to unpack installers created by Inno Setup";
homepage = http://constexpr.org/innoextract/;
2015-11-12 00:03:43 +00:00
license = licenses.zlib;
maintainers = with maintainers; [ abbradar ];
platforms = platforms.linux;
2015-11-12 00:03:43 +00:00
};
}