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