2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, cmake, makeWrapper, python
|
2018-01-18 08:27:39 +01:00
|
|
|
, boost, lzma
|
|
|
|
, withGog ? false, unar ? null }:
|
2015-11-12 01:03:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-08-14 11:25:45 +02:00
|
|
|
name = "innoextract-1.9";
|
2015-11-12 01:03:43 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-16 01:41:23 +01:00
|
|
|
url = "https://constexpr.org/innoextract/files/${name}.tar.gz";
|
2020-08-14 11:25:45 +02:00
|
|
|
sha256 = "09l1z1nbl6ijqqwszdwch9mqr54qb7df0wp2sd77v17dq6gsci33";
|
2015-11-12 01:03:43 +01:00
|
|
|
};
|
|
|
|
|
2018-01-18 08:27:39 +01:00
|
|
|
buildInputs = [ python lzma boost ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
|
|
|
|
|
|
|
# we need unar to for multi-archive extraction
|
2021-01-15 10:19:50 +01:00
|
|
|
postFixup = lib.optionalString withGog ''
|
2018-01-18 08:27:39 +01:00
|
|
|
wrapProgram $out/bin/innoextract \
|
2021-01-15 10:19:50 +01:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ unar ]}
|
2018-01-18 08:27:39 +01:00
|
|
|
'';
|
2015-11-12 01:03:43 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-11-12 01:03:43 +01:00
|
|
|
description = "A tool to unpack installers created by Inno Setup";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://constexpr.org/innoextract/";
|
2015-11-12 01:03:43 +01:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2018-01-18 08:27:39 +01:00
|
|
|
platforms = platforms.linux;
|
2015-11-12 01:03:43 +01:00
|
|
|
};
|
|
|
|
}
|