2023-12-09 21:50:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, nix-update-script
|
2023-12-09 21:57:51 +00:00
|
|
|
, testers
|
2023-12-09 21:50:22 +00:00
|
|
|
}:
|
2009-03-22 13:03:37 +00:00
|
|
|
|
2023-12-09 21:54:21 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "upx";
|
2024-05-12 03:57:30 +00:00
|
|
|
version = "4.2.4";
|
2023-02-09 21:44:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "upx";
|
2023-12-09 21:54:21 +00:00
|
|
|
repo = "upx";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2023-02-09 21:44:10 +00:00
|
|
|
fetchSubmodules = true;
|
2024-05-12 03:57:30 +00:00
|
|
|
hash = "sha256-r36BD5f/sQSz3GjvreOptc7atIaaBZKpU+7qm+BKLss=";
|
2009-03-22 13:03:37 +00:00
|
|
|
};
|
2011-03-31 09:49:54 +00:00
|
|
|
|
2023-02-09 21:44:10 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2009-03-22 13:03:37 +00:00
|
|
|
|
2023-12-09 21:50:22 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
2023-12-09 21:57:51 +00:00
|
|
|
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
2023-12-09 21:50:22 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://upx.github.io/";
|
2009-03-22 13:03:37 +00:00
|
|
|
description = "Ultimate Packer for eXecutables";
|
2024-01-03 19:47:51 +00:00
|
|
|
changelog = "https://github.com/upx/upx/blob/${finalAttrs.src.rev}/NEWS";
|
2017-07-26 21:24:49 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "upx";
|
2009-03-22 13:03:37 +00:00
|
|
|
};
|
2023-12-09 21:54:21 +00:00
|
|
|
})
|