diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-06-05 08:39:01 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-06-05 08:39:01 +0200 |
commit | 184698391da61e155fd630fb90207089ca49c14e (patch) | |
tree | 32495e8383148ec9247369692068f560bf545f74 /pkgs/tools | |
parent | 8420ca28deba06a3c073c52cd3420cfa25902f42 (diff) | |
parent | c9e173fe09e33545ba936a0ee681df5200bae8f1 (diff) |
Merge #173709: bzip3: init at 1.1.3
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/compression/bzip3/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/compression/bzip3/default.nix b/pkgs/tools/compression/bzip3/default.nix new file mode 100644 index 0000000000000..7fce055ce9fcc --- /dev/null +++ b/pkgs/tools/compression/bzip3/default.nix @@ -0,0 +1,42 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +}: + +stdenv.mkDerivation rec { + pname = "bzip3"; + version = "1.1.3"; + + outputs = [ "bin" "dev" "out" ]; + + src = fetchFromGitHub { + owner = "kspalaiologos"; + repo = "bzip3"; + rev = version; + hash = "sha256-puGtaL76p4BzSiTPf3qFgXN4pz90CDU9dziGIszk3to="; + }; + + postPatch = '' + echo -n "${version}" > .tarball-version + patchShebangs build-aux + ''; + + nativeBuildInputs = [ + autoreconfHook + ]; + + configureFlags = [ + "--disable-arch-native" + ]; + + 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 ]; + # upstream supports Darwin but I couldn't get it to work + platforms = lib.platforms.linux; + }; +} |