nixpkgs-suyu/pkgs/tools/compression/pbzx/default.nix

27 lines
671 B
Nix
Raw Normal View History

2021-03-14 19:12:53 +01:00
{stdenv, lib, fetchFromGitHub, xz, xar}:
2018-04-08 07:28:06 +02:00
stdenv.mkDerivation rec {
pname = "pbzx";
version = "1.0.2";
src = fetchFromGitHub {
owner = "NiklasRosenstein";
repo = "pbzx";
rev = "v${version}";
sha256 = "0bwd7wmnhpz1n5p39mh6asfyccj4cm06hwigslcwbb3pdwmvxc90";
};
2021-03-14 19:12:53 +01:00
buildInputs = [ xz xar ];
2018-04-08 07:28:06 +02:00
buildPhase = ''
2020-11-19 08:29:47 +01:00
${stdenv.cc.targetPrefix}cc pbzx.c -llzma -lxar -o pbzx
2018-04-08 07:28:06 +02:00
'';
installPhase = ''
mkdir -p $out/bin
cp pbzx $out/bin
'';
meta = with lib; {
description = "Stream parser of Apple's pbzx compression format";
2018-04-08 07:28:06 +02:00
platforms = platforms.unix;
license = licenses.gpl3;
maintainers = [ maintainers.matthewbauer ];
};
}