jenkins: 2.479.3 -> 2.492.1
[NixPkgs.git] / pkgs / by-name / ad / advancecomp / package.nix
blobfe6d79f732ca878c2d666108fe7482ab46052cfe
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   autoreconfHook,
6   zlib,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "advancecomp";
11   version = "2.6";
13   src = fetchFromGitHub {
14     owner = "amadvance";
15     repo = "advancecomp";
16     rev = "v${version}";
17     hash = "sha256-MwXdXT/ZEvTcYV4DjhCUFflrPKBFu0fk5PmaWt4MMOU=";
18   };
20   nativeBuildInputs = [ autoreconfHook ];
21   buildInputs = [ zlib ];
23   # autover.sh relies on 'git describe', which obviously doesn't work as we're not cloning
24   # the full git repo. so we have to put the version number in `.version`, otherwise
25   # the binaries get built reporting "none" as their version number.
26   postPatch = ''
27     echo "${version}" >.version
28   '';
30   meta = with lib; {
31     description = "Set of tools to optimize deflate-compressed files";
32     license = licenses.gpl3;
33     maintainers = [ maintainers.raskin ];
34     platforms = platforms.linux ++ platforms.darwin;
35     homepage = "https://github.com/amadvance/advancecomp";
36     changelog = "https://github.com/amadvance/advancecomp/blob/v${version}/HISTORY";
37   };