2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "advancecomp";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "2.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "amadvance";
|
|
|
|
repo = "advancecomp";
|
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-klyTqqZs5TwadgDP8LJ1wUhXlO+/kQPM6qhiSki31Q8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
# 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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "A set of tools to optimize deflate-compressed files";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3 ;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
homepage = "https://github.com/amadvance/advancecomp";
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|