Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "advancecomp";
|
|
version = "2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "amadvance";
|
|
repo = "advancecomp";
|
|
tag = "v${version}";
|
|
hash = "sha256-MwXdXT/ZEvTcYV4DjhCUFflrPKBFu0fk5PmaWt4MMOU=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Set of tools to optimize deflate-compressed files";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
homepage = "https://github.com/amadvance/advancecomp";
|
|
changelog = "https://github.com/amadvance/advancecomp/blob/v${version}/HISTORY";
|
|
};
|
|
}
|