Files
nixpkgs/pkgs/by-name/un/unarc/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
997 B
Nix

{
stdenv,
unstableGitUpdater,
fetchFromGitHub,
lib,
}:
stdenv.mkDerivation {
pname = "unarc";
version = "0-unstable-2020-06-05";
src = fetchFromGitHub {
owner = "xredor";
repo = "unarc";
rev = "adc333d6cdd76d72da254cc80d766fbbcc683c95";
hash = "sha256-ysOei44P3K+aA+h73DuHlgwTKqQx/Xq8z+DefB6Qhcs=";
};
postPatch = ''
substituteInPlace 'CUI.h' \
--replace-fail 'fgets(answer, 256, stdin);' 'if (!fgets (answer, 256, stdin)) return FALSE;' \
--replace-fail 'printf (help)' 'printf ("%s", help)'
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m755 unarc $out/bin
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Unpacker for ArC (FreeArc) archives ('ArC\\1' header)";
homepage = "https://github.com/xredor/unarc";
license = lib.licenses.unfree; # unknown
maintainers = [ lib.maintainers.lucasew ];
mainProgram = "unarc";
};
}