nixpkgs/pkgs/tools/compression/advancecomp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
961 B
Nix
Raw Normal View History

{ lib, stdenv
2019-12-16 01:15:35 +03:00
, fetchFromGitHub
, autoreconfHook
, zlib
}:
2017-03-25 05:37:56 +03:00
stdenv.mkDerivation rec {
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=";
};
2017-03-25 05:37:56 +03: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
'';
meta = with lib; {
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 ];
platforms = platforms.linux ++ platforms.darwin;
homepage = "https://github.com/amadvance/advancecomp";
2017-03-25 05:37:56 +03:00
};
}