32 lines
912 B
Nix
32 lines
912 B
Nix
{ stdenv, fetchurl, cmake, doxygen, makeWrapper, python
|
|
, boost, lzma
|
|
, withGog ? false, unar ? null }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "innoextract-1.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://constexpr.org/innoextract/files/${name}.tar.gz";
|
|
sha256 = "0gh3q643l8qlwla030cmf3qdcdr85ixjygkb7j4dbm7zbwa3yik6";
|
|
};
|
|
|
|
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 ]}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A tool to unpack installers created by Inno Setup";
|
|
homepage = http://constexpr.org/innoextract/;
|
|
license = licenses.zlib;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|