1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/tools/compression/advancecomp/default.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

2019-12-15 22:15:35 +00:00
{ stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, zlib
}:
2017-03-25 02:37:56 +00:00
stdenv.mkDerivation rec {
pname = "advancecomp";
version = "2.1";
2017-03-25 02:37:56 +00:00
src = fetchFromGitHub {
owner = "amadvance";
repo = "advancecomp";
rev = "v${version}";
sha256 = "1pd6czamamrd0ppk5a3a65hcgdlqwja98aandhqiajhnibwldv8x";
};
2017-03-25 02:37:56 +00:00
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib ];
2019-12-15 22:15:35 +00:00
patches = [
(fetchpatch {
name = "CVE-2019-9210.patch";
url = "https://github.com/amadvance/advancecomp/commit/fcf71a89265c78fc26243574dda3a872574a5c02.patch";
sha256 = "0cdv9g87c1y8zwhqkd9ba2zjw4slcvg7yzcqv43idvnwb5fl29n7";
excludes = [ "doc/history.d" ];
})
];
# 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
'';
2017-03-25 02:37:56 +00:00
meta = with stdenv.lib; {
description = ''A set of tools to optimize deflate-compressed files'';
2017-04-07 19:33:56 +01: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
};
}