2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, cmake, makeWrapper, python
|
2018-01-18 07:27:39 +00:00
|
|
|
, boost, lzma
|
|
|
|
, withGog ? false, unar ? null }:
|
2015-11-12 00:03:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-06-14 13:31:38 +01:00
|
|
|
name = "innoextract-1.7";
|
2015-11-12 00:03:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://constexpr.org/innoextract/files/${name}.tar.gz";
|
2018-06-14 13:31:38 +01:00
|
|
|
sha256 = "197hs9aj1ska6czrsq4caazsw9v0xbaa0lazbh380fmwy8rbgvy1";
|
2015-11-12 00:03:43 +00:00
|
|
|
};
|
|
|
|
|
2018-01-18 07:27:39 +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";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://constexpr.org/innoextract/;
|
2015-11-12 00:03:43 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2018-01-18 07:27:39 +00:00
|
|
|
platforms = platforms.linux;
|
2015-11-12 00:03:43 +00:00
|
|
|
};
|
|
|
|
}
|