3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/compression/bzip3/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
978 B
Nix
Raw Normal View History

2022-05-20 06:31:51 +01:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
2022-06-26 05:14:24 +01:00
, pkg-config
2022-05-20 06:31:51 +01:00
}:
stdenv.mkDerivation rec {
pname = "bzip3";
2022-06-26 05:14:24 +01:00
version = "1.1.4";
2022-05-20 06:31:51 +01:00
outputs = [ "bin" "dev" "out" ];
src = fetchFromGitHub {
owner = "kspalaiologos";
repo = "bzip3";
rev = version;
2022-06-26 05:14:24 +01:00
hash = "sha256-rbJUvFm8WYgQLNpbX6kcXb5qAGAJfylTo4HgOvZVCu8=";
2022-05-20 06:31:51 +01:00
};
postPatch = ''
echo -n "${version}" > .tarball-version
patchShebangs build-aux
'';
nativeBuildInputs = [
autoreconfHook
2022-06-26 05:14:24 +01:00
pkg-config
2022-05-20 06:31:51 +01:00
];
configureFlags = [
"--disable-arch-native"
2022-06-05 05:20:00 +01:00
] ++ lib.optionals stdenv.isDarwin [ "--disable-link-time-optimization" ];
2022-05-20 06:31:51 +01:00
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 ];
2022-06-05 05:20:00 +01:00
platforms = lib.platforms.unix;
2022-05-20 06:31:51 +01:00
};
}