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