nixpkgs/pkgs/by-name/up/upx/package.nix

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

36 lines
815 B
Nix
Raw Normal View History

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
}:
2023-12-09 21:54:21 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "upx";
2024-05-12 03:57:30 +00:00
version = "4.2.4";
src = fetchFromGitHub {
owner = "upx";
2023-12-09 21:54:21 +00:00
repo = "upx";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
2024-05-12 03:57:30 +00:00
hash = "sha256-r36BD5f/sQSz3GjvreOptc7atIaaBZKpU+7qm+BKLss=";
};
nativeBuildInputs = [ cmake ];
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
};
meta = with lib; {
homepage = "https://upx.github.io/";
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";
};
2023-12-09 21:54:21 +00:00
})