2021-01-11 10:54:33 +03:00
|
|
|
{ lib, stdenv
|
2019-12-16 01:15:35 +03:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, zlib
|
|
|
|
}:
|
2017-03-25 05:37:56 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "advancecomp";
|
2022-11-23 17:45:41 +03:00
|
|
|
version = "2.4";
|
2017-03-25 05:37:56 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "amadvance";
|
|
|
|
repo = "advancecomp";
|
|
|
|
rev = "v${version}";
|
2022-11-23 17:45:41 +03:00
|
|
|
hash = "sha256-nl1t1XbyCDYH7jKdIRSIXfXuRCj5N+5noC86VpbpWu4=";
|
2014-09-17 11:27:13 +04:00
|
|
|
};
|
2017-03-25 05:37:56 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2020-04-13 11:19:44 +03: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 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2021-01-24 12:19:10 +03:00
|
|
|
description = "A set of tools to optimize deflate-compressed files";
|
2017-04-07 21:33:56 +03:00
|
|
|
license = licenses.gpl3 ;
|
2017-03-25 05:37:56 +03:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2019-07-28 09:25:17 +03:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/amadvance/advancecomp";
|
2017-03-25 05:37:56 +03:00
|
|
|
|
2014-09-17 11:27:13 +04:00
|
|
|
};
|
|
|
|
}
|