blob: 14b128d15c7a3dba064a764ad59cd1843da77470 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ stdenv, fetchurl, cmake, doxygen, makeWrapper, python
, boost, lzma
, withGog ? false, unar ? null }:
stdenv.mkDerivation rec {
name = "innoextract-1.7";
src = fetchurl {
url = "http://constexpr.org/innoextract/files/${name}.tar.gz";
sha256 = "197hs9aj1ska6czrsq4caazsw9v0xbaa0lazbh380fmwy8rbgvy1";
};
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;
};
}
|