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-15 22:15:35 +00:00
, fetchFromGitHub
, autoreconfHook
, zlib
}:
2017-03-25 02:37:56 +00:00
stdenv.mkDerivation rec {
pname = "advancecomp";
2023-01-25 14:13:40 +00:00
version = "2.5";
2017-03-25 02:37:56 +00:00
src = fetchFromGitHub {
owner = "amadvance";
repo = "advancecomp";
rev = "v${version}";
2023-01-25 14:13:40 +00:00
hash = "sha256-dlVTMd8sm84M8JZsCfVR/s4jXMQWmrVj7xwUVDsehQY=";
};
2017-03-25 02:37:56 +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
'';
meta = with lib; {
description = "A set of tools to optimize deflate-compressed files";
2017-04-07 18:33:56 +00:00
license = licenses.gpl3 ;
2017-03-25 02:37:56 +00:00
maintainers = [ maintainers.raskin ];
platforms = platforms.linux ++ platforms.darwin;
homepage = "https://github.com/amadvance/advancecomp";
2017-03-25 02:37:56 +00:00
};
}