nixpkgs/pkgs/tools/archivers/innoextract/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

2021-03-26 11:55:32 +03:00
{ lib, stdenv, fetchurl, cmake, makeWrapper
2021-03-14 21:12:53 +03:00
, boost, xz
, withGog ? false, unar ? null }:
2015-11-12 03:03:43 +03:00
stdenv.mkDerivation rec {
2021-08-12 22:47:47 +03:00
pname = "innoextract";
version = "1.9";
2015-11-12 03:03:43 +03:00
src = fetchurl {
2021-08-12 22:47:47 +03:00
url = "https://constexpr.org/innoextract/files/innoextract-${version}.tar.gz";
2020-08-14 12:25:45 +03:00
sha256 = "09l1z1nbl6ijqqwszdwch9mqr54qb7df0wp2sd77v17dq6gsci33";
2015-11-12 03:03:43 +03:00
};
2021-03-14 21:12:53 +03:00
buildInputs = [ xz boost ];
2021-03-26 11:55:32 +03:00
# Python is reported as missing during the build, however
# including Python does not change the output.
nativeBuildInputs = [ cmake makeWrapper ];
2021-03-26 11:55:32 +03:00
strictDeps = true;
# we need unar to for multi-archive extraction
2021-01-15 12:19:50 +03:00
postFixup = lib.optionalString withGog ''
wrapProgram $out/bin/innoextract \
2021-01-15 12:19:50 +03:00
--prefix PATH : ${lib.makeBinPath [ unar ]}
'';
2015-11-12 03:03:43 +03:00
meta = with lib; {
2015-11-12 03:03:43 +03:00
description = "A tool to unpack installers created by Inno Setup";
homepage = "https://constexpr.org/innoextract/";
2015-11-12 03:03:43 +03:00
license = licenses.zlib;
maintainers = with maintainers; [ abbradar ];
platforms = platforms.linux;
2023-11-27 04:17:53 +03:00
mainProgram = "innoextract";
2015-11-12 03:03:43 +03:00
};
}