mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
pbzx: init at 1.0.2
This commit is contained in:
parent
65562e4cdd
commit
c3ce4ee723
27
pkgs/tools/compression/pbzx/default.nix
Normal file
27
pkgs/tools/compression/pbzx/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{stdenv, lib, fetchFromGitHub, lzma, xar}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pbzx";
|
||||
version = "1.0.2";
|
||||
name = "${pname}-${version}";
|
||||
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; {
|
||||
description = "Stream parser of Apple's pbzx compression format.";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.matthewbauer ];
|
||||
};
|
||||
}
|
|
@ -1344,6 +1344,8 @@ with pkgs;
|
|||
|
||||
patdiff = callPackage ../tools/misc/patdiff { };
|
||||
|
||||
pbzx = callPackage ../tools/compression/pbzx { };
|
||||
|
||||
playerctl = callPackage ../tools/audio/playerctl { };
|
||||
|
||||
ps_mem = callPackage ../tools/system/ps_mem { };
|
||||
|
|
Loading…
Reference in a new issue