2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-12-15 22:15:35 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, zlib
|
|
|
|
}:
|
2017-03-25 02:37:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "advancecomp";
|
2023-10-11 12:10:54 +00:00
|
|
|
version = "2.6";
|
2017-03-25 02:37:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "amadvance";
|
|
|
|
repo = "advancecomp";
|
|
|
|
rev = "v${version}";
|
2023-10-11 12:10:54 +00:00
|
|
|
hash = "sha256-MwXdXT/ZEvTcYV4DjhCUFflrPKBFu0fk5PmaWt4MMOU=";
|
2014-09-17 07:27:13 +00:00
|
|
|
};
|
2017-03-25 02:37:56 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2020-04-13 08:19:44 +00:00
|
|
|
# autover.sh relies on 'git describe', which obviously doesn't work as we're not cloning
|
|
|
|
# the full git repo. so we have to put the version number in `.version`, otherwise
|
|
|
|
# the binaries get built reporting "none" as their version number.
|
|
|
|
postPatch = ''
|
|
|
|
echo "${version}" >.version
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "Set of tools to optimize deflate-compressed files";
|
2017-04-07 18:33:56 +00:00
|
|
|
license = licenses.gpl3 ;
|
2017-03-25 02:37:56 +00:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2019-07-28 06:25:17 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/amadvance/advancecomp";
|
2024-10-04 19:35:12 +00:00
|
|
|
changelog = "https://github.com/amadvance/advancecomp/blob/v${version}/HISTORY";
|
2014-09-17 07:27:13 +00:00
|
|
|
};
|
|
|
|
}
|