2021-04-05 15:23:46 +00:00
|
|
|
{stdenv, lib, fetchFromGitHub, xz, xar}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pbzx";
|
|
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NiklasRosenstein";
|
|
|
|
repo = "pbzx";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0bwd7wmnhpz1n5p39mh6asfyccj4cm06hwigslcwbb3pdwmvxc90";
|
|
|
|
};
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ xz xar ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPhase = ''
|
2021-05-28 09:39:13 +00:00
|
|
|
${stdenv.cc.targetPrefix}cc pbzx.c -llzma -lxar -o pbzx
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp pbzx $out/bin
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Stream parser of Apple's pbzx compression format";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.matthewbauer ];
|
|
|
|
};
|
|
|
|
}
|