Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
makeWrapper,
|
|
boost,
|
|
xz,
|
|
libiconv,
|
|
withGog ? false,
|
|
unar ? null,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "innoextract";
|
|
version = "1.9-unstable-2025-02-06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dscharrer";
|
|
repo = "innoextract";
|
|
rev = "6e9e34ed0876014fdb46e684103ef8c3605e382e";
|
|
hash = "sha256-bgACPDo1phjIiwi336JEB1UAJKyL2NmCVOhyZxBFLJo=";
|
|
};
|
|
|
|
buildInputs = [
|
|
xz
|
|
boost
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
|
|
|
|
# Python is reported as missing during the build, however
|
|
# including Python does not change the output.
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
makeWrapper
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
# we need unar to for multi-archive extraction
|
|
postFixup = lib.optionalString withGog ''
|
|
wrapProgram $out/bin/innoextract \
|
|
--prefix PATH : ${lib.makeBinPath [ unar ]}
|
|
'';
|
|
|
|
# use unstable as latest release does not yet support cmake-4
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Tool to unpack installers created by Inno Setup";
|
|
homepage = "https://constexpr.org/innoextract/";
|
|
license = licenses.zlib;
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "innoextract";
|
|
};
|
|
}
|