2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2022-06-26 10:26:21 +00:00
|
|
|
, pkg-config
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bzip3";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "1.1.8";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kspalaiologos";
|
|
|
|
repo = "bzip3";
|
|
|
|
rev = version;
|
2022-10-30 15:09:59 +00:00
|
|
|
hash = "sha256-ok5LwarXVe2gwwfIWVSfHHY0lt1IfGtkLPlVo757G6g=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
echo -n "${version}" > .tarball-version
|
|
|
|
patchShebangs build-aux
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2022-06-26 10:26:21 +00:00
|
|
|
pkg-config
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-arch-native"
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ "--disable-link-time-optimization" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A better and stronger spiritual successor to BZip2";
|
|
|
|
homepage = "https://github.com/kspalaiologos/bzip3";
|
|
|
|
changelog = "https://github.com/kspalaiologos/bzip3/blob/${src.rev}/NEWS";
|
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|