2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, makeWrapper, python
|
2020-04-24 23:36:52 +00:00
|
|
|
, boost, lzma
|
|
|
|
, withGog ? false, unar ? null }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
name = "innoextract-1.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://constexpr.org/innoextract/files/${name}.tar.gz";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "09l1z1nbl6ijqqwszdwch9mqr54qb7df0wp2sd77v17dq6gsci33";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python lzma boost ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
|
|
|
|
|
|
|
# we need unar to for multi-archive extraction
|
2021-01-15 22:18:51 +00:00
|
|
|
postFixup = lib.optionalString withGog ''
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapProgram $out/bin/innoextract \
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ unar ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A tool to unpack installers created by Inno Setup";
|
|
|
|
homepage = "https://constexpr.org/innoextract/";
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|