depot/third_party/nixpkgs/pkgs/tools/compression/advancecomp/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

36 lines
961 B
Nix

{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, zlib
}:
stdenv.mkDerivation rec {
pname = "advancecomp";
version = "2.3";
src = fetchFromGitHub {
owner = "amadvance";
repo = "advancecomp";
rev = "v${version}";
hash = "sha256-klyTqqZs5TwadgDP8LJ1wUhXlO+/kQPM6qhiSki31Q8=";
};
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";
license = licenses.gpl3 ;
maintainers = [ maintainers.raskin ];
platforms = platforms.linux ++ platforms.darwin;
homepage = "https://github.com/amadvance/advancecomp";
};
}