depot/third_party/nixpkgs/pkgs/tools/compression/bzip3/default.nix
Default email d2947cfef0 Project import generated by Copybara.
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
2022-10-06 20:32:54 +02:00

43 lines
978 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "bzip3";
version = "1.1.6";
outputs = [ "bin" "dev" "out" ];
src = fetchFromGitHub {
owner = "kspalaiologos";
repo = "bzip3";
rev = version;
hash = "sha256-MtD1pAznoH3yqaMO5P8GVexZSWZJxqADwh1sYvecAew=";
};
postPatch = ''
echo -n "${version}" > .tarball-version
patchShebangs build-aux
'';
nativeBuildInputs = [
autoreconfHook
pkg-config
];
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;
};
}