1 {stdenv, lib, fetchFromGitHub, xz, xar}:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
7 owner = "NiklasRosenstein";
10 sha256 = "0bwd7wmnhpz1n5p39mh6asfyccj4cm06hwigslcwbb3pdwmvxc90";
12 patches = [ ./stdin.patch ];
13 buildInputs = [ xz xar ];
15 ${stdenv.cc.targetPrefix}cc pbzx.c -llzma -lxar -o pbzx
22 description = "Stream parser of Apple's pbzx compression format";
23 platforms = platforms.unix;
24 license = licenses.gpl3;
25 maintainers = [ maintainers.matthewbauer ];