2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchurl, cmake, makeWrapper, python
|
2018-01-17 23:27:39 -08:00
|
|
|
, boost, lzma
|
|
|
|
, withGog ? false, unar ? null }:
|
2015-11-11 16:03:43 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-26 15:27:40 -07:00
|
|
|
name = "innoextract-1.8";
|
2015-11-11 16:03:43 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-15 16:41:23 -08:00
|
|
|
url = "https://constexpr.org/innoextract/files/${name}.tar.gz";
|
2019-09-26 15:27:40 -07:00
|
|
|
sha256 = "0saj50n8ds85shygy4mq1h6s99510r9wgjjdll4dmvhra4lzcy2y";
|
2015-11-11 16:03:43 -08:00
|
|
|
};
|
|
|
|
|
2018-01-17 23:27:39 -08: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-11 16:03:43 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool to unpack installers created by Inno Setup";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://constexpr.org/innoextract/";
|
2015-11-11 16:03:43 -08:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2018-01-17 23:27:39 -08:00
|
|
|
platforms = platforms.linux;
|
2015-11-11 16:03:43 -08:00
|
|
|
};
|
|
|
|
}
|