3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/archivers/innoextract/default.nix

33 lines
907 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, makeWrapper, python
, boost, lzma
, withGog ? false, unar ? null }:
2015-11-12 00:03:43 +00:00
stdenv.mkDerivation rec {
2020-08-14 10:25:45 +01:00
name = "innoextract-1.9";
2015-11-12 00:03:43 +00:00
src = fetchurl {
url = "https://constexpr.org/innoextract/files/${name}.tar.gz";
2020-08-14 10:25:45 +01:00
sha256 = "09l1z1nbl6ijqqwszdwch9mqr54qb7df0wp2sd77v17dq6gsci33";
2015-11-12 00:03:43 +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";
homepage = "https://constexpr.org/innoextract/";
2015-11-12 00:03:43 +00:00
license = licenses.zlib;
maintainers = with maintainers; [ abbradar ];
platforms = platforms.linux;
2015-11-12 00:03:43 +00:00
};
}